-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathv_coord_tracker.py
28 lines (23 loc) · 1.12 KB
/
v_coord_tracker.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import time
import memory.main
from memory.main import get_actor_coords,get_map,diag_progress_flag,get_story_progress, get_encounter_id
memory.main.start()
last_time = int(time.time()) # Record the starting time as an integer.
map = get_map()
print("=================================")
memory.main.check_near_actors_print()
print("=================================")
while map == get_map():
coords = memory.main.get_actor_coords(0)
angle = memory.main.get_actor_angle(0)
cam = memory.main.get_camera()
current_time = int(time.time())
if current_time != last_time:
coords = get_actor_coords(actor_index=0)
#print(f"Coords: [{round(coords[0], 2)}, {round(coords[1],2)}] | Angle: {round(angle,2)} | Dialog: {diag_progress_flag()}" + \
# f" | Story: {get_story_progress()} | Map: {get_map()} | Skip: {memory.main.diag_skip_possible()}")
#print(f"Battle Number: {get_encounter_id()}")
print(f"Battle Number: {memory.main.s_grid_cursor_coords()}")
#memory.main.check_near_actors_print()
last_time = current_time
print(f"Map change, ({get_map()}) - ending program.")