Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
darkcieran

[SOLVED]Yet ANOTHER quandry for ya...

Question

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

12 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

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?

Share this post


Link to post
Share on other sites
  • 0

$game_party.actors[0].armor1_id

 

This is assuming there is a reader for armor1_id

 

you forgot the period (.) between [0] and armor1

Share this post


Link to post
Share on other sites
  • 0

$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 :/

Share this post


Link to post
Share on other sites
  • 0

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...