pkmn.master
Hobbyist Game Developer
- 290
- Posts
- 17
- Years
- USA
- Seen Jun 7, 2022
This is an Essentials question, but I'll answer it anyway.
The red/green line of script you typed into the event is spread over 2 lines because the script box you typed it into wasn't wide enough. The game reads each part separately, because they're on separate lines.
While in the script box (where you typed it in), run extendtext.exe (found in the main game folder) to widen the box. If it still doesn't all fit on one line (it should), purposely make a new line directly after a comma or a bracket. Something like this:
Code:[COLOR=red]pbRegisterPartner(PBTrainers: PkMnTRAINER,[/COLOR] [COLOR=seagreen]Keith,"Keith",0)[/COLOR] [COLOR=red]pbRegisterPartner([/COLOR] [COLOR=red][COLOR=seagreen]PBTrainers: PkMnTRAINER,[/COLOR][/COLOR][COLOR=seagreen]Keith,"Keith",[/COLOR] [COLOR=seagreen][COLOR=red]0)[/COLOR][/COLOR]
Thanks, but after doing that, I got the error:
Exception: RuntimeError
Message: Script error within event 21, map 42 (Majestic City):
(eval): 1 :in `pbExecuteScript'uninitialized constant PBTrainers::PkMnTRAINER_Keith
Interpreter:238:in `pbExecuteScript'
Interpreter:1650:in `eval'
Interpreter:238:in `pbExecuteScript'
Interpreter:1650:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:190:in `update'
Interpreter:104:in `loop'
Interpreter:195:in `update'
Scene_Map:100:in `update'
Scene_Map:98:in `loop'
Interpreter:277:in `pbExecuteScript'
Interpreter:1650:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:190:in `update'
Interpreter:104:in `loop'
Interpreter:195:in `update'
Scene_Map:100:in `update'
Scene_Map:98:in `loop'
Scene_Map:111:in `update'
Scene_Map:67:in `main'