ManatheSquid

Creator of Pokémon Viral

She/Her
The Floor
Seen 3 Weeks Ago
Posted 3 Weeks Ago
3 posts
26 Days
Whenever I try to get a trainer to notice the player it shows this error message
Spoiler:

---------------------------
Pokemon Viral
---------------------------
[Pokémon Essentials version 18.1.dev]

Exception: RuntimeError

Message: Script error within event 4 (coords 9,51), map 81 (Route 02):

Exception: NoMethodError

Message: PSystem_Utilities:645:in `pbExclaim'undefined method `x' for nil:NilClass



***Full script:

pbNoticePlayer(get_character(6))




Backtrace:

Interpreter:197:in `pbExecuteScript'

PSystem_Utilities:656:in `pbNoticePlayer'

(eval):1:in `pbExecuteScript'

Interpreter:1458:in `eval'

Interpreter:197:in `pbExecuteScript'

Interpreter:1458:in `command_355'

Interpreter:359:in `execute_command'

Interpreter:155:in `update'

Interpreter:102:in `loop'

Interpreter:158:in `update'





Backtrace:

Interpreter:246:in `pbExecuteScript'

Interpreter:1458:in `command_355'

Interpreter:359:in `execute_command'

Interpreter:155:in `update'

Interpreter:102:in `loop'

Interpreter:158:in `update'

Scene_Map:162:in `update'

Scene_Map:160:in `loop'

Scene_Map:169:in `update'

Scene_Map:229:in `main'



This exception was logged in

C:\Users\USERNAME\Saved Games\Pokemon Viral\errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

(If it helps, I used the Youngster Ben template, I also have the Gen 8 Project installed)
United Kingdom
Seen 3 Hours Ago
Posted 6 Days Ago
49 posts
208 Days
Whenever I try to get a trainer to notice the player it shows this error message
Spoiler:

---------------------------
Pokemon Viral
---------------------------
[Pokémon Essentials version 18.1.dev]

Exception: RuntimeError

Message: Script error within event 4 (coords 9,51), map 81 (Route 02):

Exception: NoMethodError

Message: PSystem_Utilities:645:in `pbExclaim'undefined method `x' for nil:NilClass



***Full script:

pbNoticePlayer(get_character(6))




Backtrace:

Interpreter:197:in `pbExecuteScript'

PSystem_Utilities:656:in `pbNoticePlayer'

(eval):1:in `pbExecuteScript'

Interpreter:1458:in `eval'

Interpreter:197:in `pbExecuteScript'

Interpreter:1458:in `command_355'

Interpreter:359:in `execute_command'

Interpreter:155:in `update'

Interpreter:102:in `loop'

Interpreter:158:in `update'





Backtrace:

Interpreter:246:in `pbExecuteScript'

Interpreter:1458:in `command_355'

Interpreter:359:in `execute_command'

Interpreter:155:in `update'

Interpreter:102:in `loop'

Interpreter:158:in `update'

Scene_Map:162:in `update'

Scene_Map:160:in `loop'

Scene_Map:169:in `update'

Scene_Map:229:in `main'



This exception was logged in

C:\Users\USERNAME\Saved Games\Pokemon Viral\errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

(If it helps, I used the Youngster Ben template, I also have the Gen 8 Project installed)
Change pbNoticePlayer(get_character(6)) back to pbNoticePlayer(get_character(0)). I think you were trying to change how far the trainer can see? For that, you need to change the name of the event to Trainer(6). The number between the parentheses is how far away the player can be spotted by the trainer.