Is it possible? Has [Variable 0001] equiped [Item XY]?

● ARCHIVED · READ-ONLY
Started by Andynator 5 posts View original ↗
  1. Hello!

    Is it possible, to use a Variable as a party Member-Condition for the Event-Code?

    Like this:

    Write Actor-ID from [Party-Index-1] into [Variable 0001]

    Has [Variable 0001] equiped [item XY]?

    My Problem is, i don't see a workaround for the second-Part. With normal Event-Code, the "Has Item XY Equiped" Condition appears to be useable with a specific Actor only, instead af a Variable.

    The background is: For a big puzzle in my game, i had to know, if ANY ONE of the ACTIVE party-Members (But not the reserves) has Equiped a special Item.

    If i try this with

    "Is Actor 001 Party-Index-1?"

    >>>Has Actor 001 Equiped Item XY?"

    else :

    "Is Actor 002 Party-Index-1?"

    >>>Has Actor 002 Equiped Item XY?"

    else :

    "Is Actor 003 Party-Index-1?"

    >>>Has Actor 003 Equiped Item XY?"

    else :

    [...]

    "Is Actor 008 Party-Index-4?"

    >>>Has Actor 008 Equiped Item XY?"

    else :

    "Is Actor 009 Party-Index-4?"

    >>>Has Actor 009 Equiped Item XY?"

    else :

    "Is Actor 010 Party-Index-4?"

    >>>Has Actor 010 Equiped Item XY?"

    else :

    and so on, then i got approximately 400 Querys for the entire puzzle-Event.

    I think, thats a bit to much ;)
  2. Alright, you might as well use this in your conditional. This call will check if the lead member of the party has equipped a particular weapon, though you can modify this call to get it to find equipped armors instead.

    $game_party.members[0].weapons.include?($data_weapons[1])

    * Equipment ID

    * weapons or armors
  3. that is ... i mean ... well ... it makes the Event much simpler than i thought. :)

    I think, i bring it to work!

    Thank you very much!
  4. Yes, this is where that script box comes in: to take care of any conditions that they didn't provide.

    You can pretty much write anything you can think of in the script box.
  5. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.