<-melodrama
Ok Holydiver helped me set up counters for equipment tonight which is a somex exclusive.
I got the game to add 4 strength, and decrease 50 mana when 4 items are equipped as a set.
The problem is ive tried for over an hour, trying to figure out how to reset (decrease 4 strength, restore 50 mana) when the player removes a set piece, then start measuring if the player equips the four items again.
Event: Equip set
AO
Start condition= counter ex.equip.head =172 (172 is the item number in the parameter.) and its a helmet.
Then i have three weapons of choice, if you equip one item it moves the leaf forward and checks if you have the armour, and finally If>have gloves> alter the counter value of increase (counter) to 1.
Otherwise alter leaf of this event back to 0 (weapon check.)
End if
Event: Increase temp
AO
Start condition= increase=1
If= increase=1
Alter counter value= increase=2
change param mp decrease by 50
change param str increase by 4
control active leaf this event move to leaf 1 (leaf 1 has nothing)
otherwise
control active leaf of this event to 0 (this leaf.)
end if
Event name: Reset
AO
start condition: increase= 2
If = increase=0
change player parameter (mp increase by 50)
change player parameter (str decrease by 4)
otherwise
control active leaf of this event to 0 (this leaf)
end if
Thanks in advance.
Ok Holydiver helped me set up counters for equipment tonight which is a somex exclusive.
I got the game to add 4 strength, and decrease 50 mana when 4 items are equipped as a set.
The problem is ive tried for over an hour, trying to figure out how to reset (decrease 4 strength, restore 50 mana) when the player removes a set piece, then start measuring if the player equips the four items again.
Event: Equip set
AO
Start condition= counter ex.equip.head =172 (172 is the item number in the parameter.) and its a helmet.
Then i have three weapons of choice, if you equip one item it moves the leaf forward and checks if you have the armour, and finally If>have gloves> alter the counter value of increase (counter) to 1.
Otherwise alter leaf of this event back to 0 (weapon check.)
End if
Event: Increase temp
AO
Start condition= increase=1
If= increase=1
Alter counter value= increase=2
change param mp decrease by 50
change param str increase by 4
control active leaf this event move to leaf 1 (leaf 1 has nothing)
otherwise
control active leaf of this event to 0 (this leaf.)
end if
Event name: Reset
AO
start condition: increase= 2
If = increase=0
change player parameter (mp increase by 50)
change player parameter (str decrease by 4)
otherwise
control active leaf of this event to 0 (this leaf)
end if
Thanks in advance.