- Jun 24, 2014
- Reaction score
- First Language
- Primarily Uses
Thanks as always Shaz. I understand this now. Thank you
What I am doing with the eventing is to set each enemy's common, uncommon, and rare item in the troop events (using variables), and reference those variables in the common event "Steal". I use conditional branches to determine whether that enemy is the first, second, etcetera, and another to determine which item, if any, is stolen (5%, 10%, and 25% chance; rare to common). Also, is the following a proper reference for gaining said item:That would simply be the index, perhaps combined with the id of the enemy. Wouldn't all goblins give the same things? It would make more sense to me that if you were battling 3 goblins and 2 ogres and you chose to steal, you would want to know whether it was a goblin or an ogre you were stealing from, not whether it was goblin 1, 2 or 3, or ogre 1 or 2.
Thank you. I didn't notice that when I was reading through the thread the first time, probably because I was looking for my original question regarding which enemy from the troop.No. v (or \V) is used in text boxes, not scripts.
$game_party.gain_item($data_items[$game_variables],1)would be the correct call. But that should be in the first few posts of this thread.
$game_map.width$game_map.heightOf course you will need to do something with them ... put them into variables, use them in a conditional branch ... whatever. You'll get an error if you JUST do what I've got there.Any way to call info from the map? specifically how many tiles X and Y it is?
Nothing wrong with the code. Though if you're only going to have 3 people in your party, this would be easier:It isn't throwing an error, but it also isn't changing the variable at all??Code:
if $game_party.members == 3 $game_variables = 3elsif $game_party.members == 2 $game_variables = 2else $game_variables = 1
...I completely forgot about the "Other" tab in Game Data, that makes my life so much easier...Nothing wrong with the code. Though if you're only going to have 3 people in your party, this would be easier:
$game_variables = $game_party.members.sizeHowever, why are you using a script call for this? You can do Control Variables > Game Data > Other > Party Members to put the party size into a variable.If the above isn't good enough and your script call really isn't working, show us a screenshot of your event. It's probably the way your event is set up (switch needs to be on for it to run and it isn't on, or you have another event page with a higher number that's active instead), or there's something else that's resetting that variable.