1. Dismiss Notice
  2. Within our Resources section we have over 150 Audio files, with room to grow. You may find exactly what you have been looking for. Just CLICK HERE to start your listening adventure.
    Dismiss Notice
  3. Why would you want to upload your resources directly to RMMV.co? It makes it easier for other members to download them. Click HERE for more information.
    Dismiss Notice
  4. Click HERE to see our four new featured resources by TheUnproPro, Starbird, iblamevictoria, and VGM MarkH.
    Dismiss Notice
  5. Here are the The Resource Rules.
    Dismiss Notice
  6. Please read these RULES before posting.
    Dismiss Notice

Panoply Bonus with AutoPassiveStats... help

Discussion in 'Javascript & Event Design' started by Arekushisu, Nov 23, 2018.

  1. Hi guys !

    Everything is in the title.

    I have some AutoPassiveStats always attached to any actors in the game.
    These stats are a Panoply Bonus that gives bonus to an actor with a full panoply.

    To make the AutoPassiveState appear only when the actore have the panoply equipped, i can use </Custom Passive Condition>

    But i don't know how to check current actor's equipped armor ID or weapon ID...

    For exemple, if the panoply is composed by 1 armor and 1 weapon, i will need something like :

    <Custom Passive Condition>
    if (current actor is equipped by armor (databaseID) && current actor is equipped by weapon(databaseID)) {
    condition = true;
    } else {
    condition = false;
    }
    </Custom Passive Condition>

    I tried many things and lost a lot of time without result. I hope you will be able to figure it better than me haha
     
  2. If interested, here is the solution.

    <Custom Passive Condition>
    if (user.equips().contains($dataArmors[x])) {
    condition = true;
    } else {
    condition = false;
    }
    </Custom Passive Condition>

    where X is the armor ID
     

Share This Page

Loading...