darkcieran 1 Report post Posted February 3, 2010 i wanted to ask another question. i wanted to check a hero's armor id by party position. i've tried using $game_party.actors[0]armor1_id and it didn't work. Help? Share this post Link to post Share on other sites
0 erosthanatos 7 Report post Posted February 3, 2010 i wanted to ask another question. i wanted to check a hero's armor id by party position. i've tried using $game_party.actors[0]armor1_id and it didn't work. Help? Sorry, I got your PM, but I'm currently at work, and can't recall the exact syntax...try $data_armors[$game_party.actors[0]armor1_id].id 1 darkcieran reacted to this Share this post Link to post Share on other sites
0 darkcieran 1 Report post Posted February 3, 2010 thanks but that gave me a syntax error. Share this post Link to post Share on other sites
0 Tomo2000 60 Report post Posted February 3, 2010 and you probally don't want to use $game_armor if anything. Share this post Link to post Share on other sites
0 darkcieran 1 Report post Posted February 3, 2010 but i DO want to use it. to check if the character at that positon is wearing a certain armor. Share this post Link to post Share on other sites
0 erosthanatos 7 Report post Posted February 4, 2010 and you probally don't want to use $game_armor if anything. I don't think there is another way to do this...I don't know what is wrong with using $data_armors, the default scripts reference it in multiple places, why can't I? thanks but that gave me a syntax error. It seems as if this is a problem with the script command in an event. If you put the code into a script, say in the main of Scene_Menu like so: print($data_armors[$game_party.actors[0]armor1_id].id), it works fine. I don't know what to tell you, except can it be placed in a standalone script? 1 darkcieran reacted to this Share this post Link to post Share on other sites
0 Leon 55 Report post Posted February 4, 2010 $game_party.actors[0].armor1_id This is assuming there is a reader for armor1_id you forgot the period (.) between [0] and armor1 1 darkcieran reacted to this Share this post Link to post Share on other sites
0 erosthanatos 7 Report post Posted February 4, 2010 $game_party.actors[0].armor1_id This is assuming there is a reader for armor1_id you forgot the period (.) between [0] and armor1 There is, wow can't believe I left out a period :/ 1 darkcieran reacted to this Share this post Link to post Share on other sites
0 darkcieran 1 Report post Posted February 4, 2010 thanks for answering i already tried that'$game_party.actors[0].armor1_id' what i'm trying to do is use a condition branch where it check if a party member is wearing a certain armor or not. so i wrote it as this:$game_party.actors[0].armor1_id = 2. Share this post Link to post Share on other sites
0 erosthanatos 7 Report post Posted February 4, 2010 There is an "If Actor has _______ Armor Equipped" in the conditional branch option of events...does this not work for what you are trying to do? 1 darkcieran reacted to this Share this post Link to post Share on other sites
0 darkcieran 1 Report post Posted February 4, 2010 it would if i had a small amount of actor to use. but i'm using too many to use that. that's why i wanted to know if i can do this. i'll do it if necessary but i'd rather avoid it if necessary. Share this post Link to post Share on other sites
0 darkcieran 1 Report post Posted February 5, 2010 is it possible to add the armor id to a variable then? Share this post Link to post Share on other sites
0 darkcieran 1 Report post Posted February 6, 2010 bump! Share this post Link to post Share on other sites
i wanted to ask another question. i wanted to check a hero's armor id by party position. i've tried using $game_party.actors[0]armor1_id and it didn't work. Help?
Share this post
Link to post
Share on other sites