Hi Guys and Gals,
I tried experimenting with script calling self-switches in Set Movement Route. I want to flick a self-switch when the player pushed something so that it changes it's state (sheet). In this case I do not need to do it in Set Movement Route but in other cases I may need to do it in it to use the (Skip if cannot move) function.
◆If:Player is facing Up
◆Set Movement Route:This Event (Skip)
: :◇Jump:+0, -1
: :◇Script:$gameSelfSwitches.SetValue([9, 1, A], true);
◆
:End
◆If:Player is facing Up
◆Set Movement Route:This Event (Skip)
: :◇Jump:+0, -1
: :◇Script:var key = [9, 1, A]
: :◇Script:$gameSelfSwitches.setValue(key, true);
◆
:End
This is the error I get for the first two:
And then I experimented with:
◆If:Player is facing Up
◆Set Movement Route:This Event (Skip)
: :◇Jump:+0, -1
: :◇Script:var key = [9, 1, A] $gameSelfSwitches.setValue(key, true);
◆
:End
Unexpected Identifier is what it gives me as an error
When I try these first ones the event at least jumps. When I try the next one I still get that A is undefined but it does not even jump before it returns the error:
◆If:Player is facing Up
◆Set Movement Route:This Event (Skip)
: :◇Jump:+0, -1
◆Script:var key = [9, 1, A]
: :$gameSelfSwitches.setValue(key, true);
◆
:End
I tried experimenting with script calling self-switches in Set Movement Route. I want to flick a self-switch when the player pushed something so that it changes it's state (sheet). In this case I do not need to do it in Set Movement Route but in other cases I may need to do it in it to use the (Skip if cannot move) function.
◆If:Player is facing Up
◆Set Movement Route:This Event (Skip)
: :◇Jump:+0, -1
: :◇Script:$gameSelfSwitches.SetValue([9, 1, A], true);
◆
:End
◆If:Player is facing Up
◆Set Movement Route:This Event (Skip)
: :◇Jump:+0, -1
: :◇Script:var key = [9, 1, A]
: :◇Script:$gameSelfSwitches.setValue(key, true);
◆
:End
This is the error I get for the first two:
And then I experimented with:
◆If:Player is facing Up
◆Set Movement Route:This Event (Skip)
: :◇Jump:+0, -1
: :◇Script:var key = [9, 1, A] $gameSelfSwitches.setValue(key, true);
◆
:End
Unexpected Identifier is what it gives me as an error
When I try these first ones the event at least jumps. When I try the next one I still get that A is undefined but it does not even jump before it returns the error:
◆If:Player is facing Up
◆Set Movement Route:This Event (Skip)
: :◇Jump:+0, -1
◆Script:var key = [9, 1, A]
: :$gameSelfSwitches.setValue(key, true);
◆
:End