[XP]This might be a lil bit tricky

Started by jayje, April 30, 2010, 09:06:46 am

Previous topic - Next topic

jayje

i want to set up an array of variables[ids 1-10(all set to '0')] to store actor IDs in. here's the tricky part. i want to be to add a hero's ID to the first variable in that array that equals 0. i ask this so that i can use the values in those variables to turn on certain switches to activate certain events.

any help would be appreciated.  8)


Aqua

This is tricky? O.o


for i in 1..10
if $game_variables[i] == 0
$game_variables[i] = $game_actors[ID_YOU_WANT_HERE].id
break
end
end

jayje

thank you sooo much! everyone else i asked had their brain's melted with this. then again maybe i expplained it wrong. :wacko: