Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: jayje on April 30, 2010, 09:06:46 am

Title: [XP]This might be a lil bit tricky
Post by: jayje on April 30, 2010, 09:06:46 am
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)
Title: Re: [XP]This might be a lil bit tricky
Post by: Aqua on April 30, 2010, 04:10:24 pm
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
Title: Re: [XP]This might be a lil bit tricky
Post by: jayje on May 01, 2010, 05:47:03 am
thank you sooo much! everyone else i asked had their brain's melted with this. then again maybe i expplained it wrong. :wacko: