Problem with PUZZLE...

As the title, I want to make a puzzle that moving a boulder on top of a button, you activate a 'switch ....

I created the boulder with this stuff inside:

 

- Move away from player ...

- Conctional Fork: $ game_map.events [event_id] .region_id == 2 ... with IF ...

- Sound the sound of rock ...

- Wait 30

- Flash and sound of a flash

- Wait 30

- Message

- Variable + 1

- Main switch ON

- IF ... empty ...

 

Except that just touch the stone and it moves, it always fails "Unexpected token ILLEGAL"

What's wrong ???? I state that the same system I used also on RPG MAKER VX ACE ... But there worked great ..... !!!

 
Ace uses ruby/RGSS for script commands, MV uses javascript - these are different script languages with a different syntax, so you cannot use the same code that worked in Ace and expect it to work in MV.


You need to rewrite the script code into the correct variant of MV, there is a topic about MV javascript code and its various equivalents on the forum, search there for the correct code.
Ace uses ruby/RGSS for script commands, MV uses javascript - these are different script languages with a different syntax, so you cannot use the same code that worked in Ace and expect it to work in MV.

You need to rewrite the script code into the correct variant of MV, there is a topic about MV javascript code and its various equivalents on the forum, search there for the correct code.
Thanks for reply ... I also does not have a scripter ... I would not know how to look ... do you think that might be a line right ???

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-puzzle.50848/