- Joined
- Sep 9, 2014
- Messages
- 38
- Reaction score
- 1
- First Language
- English
- Primarily Uses
Hi! I am trying to develop some basic commands I can't do using the RPGVXA engine so resorting to scripting on my own. I've never made a script before, am new at this, trying to learn and could use some help please, in the form of answering and pointing out problems with some basic script commands i am trying out.
I just tried to do a basic conditional command in rpgvxa using events command -> advanced -> script
I simply wanted to tell the game to,
if party has item 33,
party lose item 33 by 1 quantity count,
else
party gain item 33 by 1 quantity count,
end
here's the code i input
when result = $game_party.has_item?($data_items[33[1]]) $game_party.lose_item($data_items[33], 1)else $game_party.gain_item($data_items[33], 1)endI received script game interpreter line 1411 syntax error occurred. Something wrong with my first line of code.
What did I do wrong? T_T
I just tried to do a basic conditional command in rpgvxa using events command -> advanced -> script
I simply wanted to tell the game to,
if party has item 33,
party lose item 33 by 1 quantity count,
else
party gain item 33 by 1 quantity count,
end
here's the code i input
when result = $game_party.has_item?($data_items[33[1]]) $game_party.lose_item($data_items[33], 1)else $game_party.gain_item($data_items[33], 1)endI received script game interpreter line 1411 syntax error occurred. Something wrong with my first line of code.
What did I do wrong? T_T

