Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Panoply Bonus with AutoPassiveStats... help

Arekushisu

Villager
Xy$
0.00
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
 

Arekushisu

Villager
Xy$
0.00
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
 
Top