- 224
- Posts
- 9
- Years
- Seen Feb 20, 2025
So this might sound a bit weird, but I just tested it in clean v17.1.
Used in an event, this single line works fine:
Whereas this one doesn't:
It returns the following error:
It looks like some Event numbers return this error (the only thing to change to reproduce this is to try different Event numbers).
I tested some more or less random numbers.
Those numbers return the error message:
008,009,018,029,087,097
Those are working fine:
007,026,047,052,100,118
I have no idea why it gives different results, but reproducing this should not be too hard.
Used in an event, this single line works fine:
Code:
pbSetSelfSwitch([COLOR="red"]003[/COLOR],"A",true,2)
Whereas this one doesn't:
Code:
pbSetSelfSwitch([COLOR="Red"]008[/COLOR],"A",true,2)
It returns the following error:
Spoiler:
Exception: RuntimeError
Message: Script error within event 16 (coords 26,1), map 3 (Red's house):
Exception: SyntaxError
Message: (eval):1:in `pbExecuteScript'compile error
(eval):1: syntax error
pbSetSelfSwitch(008,"A",true,002)
^
***Full script:
pbSetSelfSwitch(008,"A",true,002)
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:163:in `update'
Scene_Map:161:in `loop'
Scene_Map:170:in `update'
Scene_Map:234:in `main'
Message: Script error within event 16 (coords 26,1), map 3 (Red's house):
Exception: SyntaxError
Message: (eval):1:in `pbExecuteScript'compile error
(eval):1: syntax error
pbSetSelfSwitch(008,"A",true,002)
^
***Full script:
pbSetSelfSwitch(008,"A",true,002)
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:163:in `update'
Scene_Map:161:in `loop'
Scene_Map:170:in `update'
Scene_Map:234:in `main'
It looks like some Event numbers return this error (the only thing to change to reproduce this is to try different Event numbers).
I tested some more or less random numbers.
Those numbers return the error message:
008,009,018,029,087,097
Those are working fine:
007,026,047,052,100,118
I have no idea why it gives different results, but reproducing this should not be too hard.
Last edited by a moderator: