- Joined
- Jan 18, 2016
- Messages
- 7
- Reaction score
- 0
- First Language
- English
Hello!
"Usage Example:
if $gameSwitches.value(1)
action effect
else if $gameSwitches.value(2)
action effect
action effect
else
action effect
action effect
action effect
end"
This is the example for the if else statements shown in the first plugin. I do not have much knowledge in JavaScript so I would like to ask if there is a way to check for what weapon type the user has equipped.
I am trying to create an attack which will check the user's weapon, and if it is a melee weapon it will have the user move to the target and attack, but if it has a ranged weapon the user will instead step back and attack from a distance. Please help! And thank you!
"Usage Example:
if $gameSwitches.value(1)
action effect
else if $gameSwitches.value(2)
action effect
action effect
else
action effect
action effect
action effect
end"
This is the example for the if else statements shown in the first plugin. I do not have much knowledge in JavaScript so I would like to ask if there is a way to check for what weapon type the user has equipped.
I am trying to create an attack which will check the user's weapon, and if it is a melee weapon it will have the user move to the target and attack, but if it has a ranged weapon the user will instead step back and attack from a distance. Please help! And thank you!

