Editors - hzla/Pokeweb GitHub Wiki
Editor Information
Included below is information about the various editors that is not immediately obvious.
Anything that is a teal color is designed to be edited. If the value entered is not valid, the field will flash red and the value will not save. Otherwise, all changes are applied saved automatically.
Headers
You can add encounters to a location by specifying an encounter id in the encounters
column. If you are adding an encounter to a location that doesn't normally have encounters, you will need to also adjust the unknown_4
value.
Use 192
for indoor building encounters and 0
for town/city encounters or copy the unknown_4
value from another header that has encounters.
Personals
Fields in pokemon personals are able to be right clicked and applied to all mons shown on the screen. For example, you can filter with the search bar and then set all pokemon's type to a certain stat or set all ev yields to 0.
Trainers
Ability Slot
0 is random between ability 1 and 2, 1 is ability 1, 2 is ability 2, 3 is ability 3.
IVs
go from 0-255. After setting an IV you can click on the IV field label to view a list of natures for all possilbe IVs.
Form
is 0 indexed
Heal?
determins whether or not the player is healed after battle. 0 for no 1 for yes
Gender
defaults to the gender of the trainer, or the more common gender for that pokemon as defined in the personal editor.
The Item and Moves checkboxes control whether or not the trainer pokemon use custom moves or held items. Moves will default to the latest 4 learnset moves and held items default to nothing. Setting a move or item will automatically check these boxes.
Autofill Learnset Moves will autofill with the latest up to 4 moves learned by the pokemon at that level.
The Purple "Toggle Single NPC Doubles Battles" button enables you to set a standard trainer as a double battle without giving them a partner npc. A standard trainer is defined as a trainer who's battle is started using the global trainer battle script. If you do not toggle this to "true" setting a standard trainer as a double battle will crash the game. By setting this to true, pokeweb will overwrite the global script 1239 to remove the check for a partner npc. This will also overwrite any changes you may have made yourself to script 1239.
Encounters
Form
is 0 indexed. 0 for base form, 1 for the first alt form etc. To check number corresponds to which form, you can check the order in the personal editor.
You can right click on a season icon to copy its data to the other seasons.
Moves
Effect
adds additional effects to the move. A list of all effects can be seen in Reference_Files/effects.txt
Effect Category
changes how the AI views the move. The following is a list of all the effect categories.
"No Special Effect", "Status Inflicting","Target Stat Changing","Healing",
"Chance to Inflict Status","Raising Target's Stat along Attack",
"Lowering Target's Stat along Attack","Raise user stats",
"Lifesteal","OHKO","Weather","Safeguard", "Force Switch Out", "Unique Effect"
Status Type
describes what kind of status is applied. The following is a list of status types:
"None","Visible","Temporary","Infatuation", "Trapped"
Recoil %
is generally how much % recoil a move causes out of 100. The exceptions are lifesteal moves have a recoil value of 206. Headsmash in bw2 have a recoil value of 32.
Priority
goes from values 0-255. A move with +1 priority should have a value of 1. A move with -1 priority should have a value of 255. +2 is 2 and -2 is 254 and so forth.
Animation ID
is the animation file a move uses. This defaults to the move id. Changing this will overwrite the current file to copy the animation file of the id supplied. This will erase the current animation data and is irreversible unless you have a backup or reload the rom. Edits to this value only supported for BW2.
Move Expansion
Additional move slots can be added by adjusting expansion_settings.json. This only expands the move and move animation data. You will have to expand the necessary text banks yourself. Settings must be set before loading a rom. Currently only tested on BW2.
Move Expansion Online
On pokeweb online, you can add moves from gen 6-9 by clicking Expand Moves
on the move editor page. This will add in move data and expand the text banks. There will be 115 filler moves starting at id 560. These moves are unusable and should be left alone. All moves will have an animation id of 0 and you will need to set the animation ids manually. Most effects will also be none
and no unique effects from later gens are implemented. Move expansion only gives a template and you must fill in the rest of the data yourself. The expanded textbanks are 16,402,403, and 488 in bw2, and 13,202,203,286 for bw. Currently tested on both bw2 and bw.
TMs
Tms edits are by default not exported unless you set output_arm9 in session_settings.json to true.
Items
Marts
Grottos
Grottos have different slots that can be randomly chosen to spawn. Rare items, common items, rare pokemon, common pokemon etc. The odds for these slots can be adjusted by clicking on Edit Odds, on the righthand side search bar.
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
Texts
To enable the text editor, open session_settings.json and change “text_editor” from “false” to “true”. You will need dotnetcore3.1 which should come preinstalled for windows. If you are on macos, download and install from here.