RPG Maker Forums

Hello,

So, let's start with a little of background, I use Yanfly EquipCore, and my heroes have multiple slot.
"Weapon
Off-Hand
Body
Accessory
Accessory
Accessory"


Now what I want to check is does the Actor1 have equipped Accessory "Heal" in the slot 3,4 or 5.
I did some research and I think that the best solution would be in the script call :
$game_actors[X].equips[Y].id

So for now I started a conditionnal branch in wich I put this script :
if ($gameActors.actor(1).equips()[3].id) == 8
then
blablabla
else
blablabla

But it currentely doesn't work ... So I tried to ask the id, with return "$GameActor(1).actor(1).equips()[3].if" just for helping, but the command doesn't work neither ...

I would be glad to get some help ? Please ? I'm not really a scripter ...




Edit : Okay so now I'm trying using this sentence :
$gameActors.actor(1).equips(5) && $gameActors.actor(1).equips(5).aItemsId == 6

It "work" but always return false ...




Okay so I worked it over and found the solution :
In a conditionnal branch, script :
$gameActors.actor(1).equips()[3] && $gameActors.actor(1).equips()[3].id == 8

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top