Overworlds NPCs - hzla/Pokeweb-Live GitHub Wiki
Overworlds
The overworld editor is accessed by going to the headers page and clicking on the overworlds_id field in the map header. Or if you know the id of the overworld file you want to edit, you can go to localhost:4567/overworld/:id. As of now, only npcs are editable.
Hover your cursor over a tile to see the permission info for the tile. You can click a tile to edit the permission flags and movement flags. If you want to edit a tile under an npc, move the npc, edit the tile, then move the npc back.
Click on an npc to see info in the sidebar. Npcs can also be moved using the arrow keys on your keyboard. You can also add and delete npcs but beware as all changes are saved automatically so make frequent backups.
Settings script_id to 3000 + trainer_id will cause it to use the global trainer battle script. Replace 3000 with 5000 for doubles.
Directions go from 0-3. [Up, Down, Left, Right]
Movements are as follows:
2,Looking AROUND (randomly)
3,Walking AROUND randomly till max
4,Looking UP and DOWN
5,Looking LEFT and RIGHT
6,Looking UP and LEFT
7,Looking UP and RIGHT
8,Looking LEFT and DOWN
9,Looking RIGHT and DOWN
10,Looking UP, DOWN and LEFT (randomly)
11,Looking UP, DOWN and RIGHT (randomly)
12,Looking UP, LEFT and RIGHT (randomly)
13,Looking DOWN, LEFT and RIGHT (randomly)
14,Looking UP
15,Looking DOWN
16,Looking LEFT
17,Looking RIGHT
18,Looking UP, LEFT, DOWN, RIGHT (counter-clockwise)
19,Looking UP, RIGHT, DOWN, LEFT (clockwise)
31,Running DOWN till max, RIGHT till max; then returns + repeats
32,Running RIGHT till max, UP till max; then returns + repeats