I'm trying to make it so when the user has X weapon equipped, they will have Poison applied to them in combat automatically. Maybe at the start of their turn or what have you. I'm willing to pick up a script or two if need be to make this possible, but my googling didn't heed many results on how this could be done.
i.e; a Poison Rod, it has its benefits, but its main downside is that it causes the wearer to be poisoned in battle.
Self-afflicted states with equipment?
● ARCHIVED · READ-ONLY
-
-
You'll need a script for that - the easiest choice is probably a script that calls a common event on equip, and then make the common event apply the state. I don't know of a script that applies states directly, because with a common event you can do a lot more than only apply a state to the wearer.
Tsukihime has one such skript, check her blog or the master script list for equip events. -
A script would be easier in the long run if you have several equips like this, but you can also event it. Just run a Common Event at the start of every battle that checks each actor for the equip, and applies the appropriate state if they're wearing it.
Additionally, for something simply like "Poison", you could skip the state entirely and just add a negative HRG trait to the equip. -
I was thinking the same thing Andar, the thing is he wants the state only in battle... If we use an equip event script, that would run the moment you equip the item, so he would be poisoned right after equipping the item even if it's outside of battle... Possibly, even passive state scripts could have that same effect, I just don't know for sure...
In case passive states also would work the moment you have the equipment, then I would go with Wavelength's suggestion. If you want a script rather than a common event (which btw since common events don't normally run on the battle scene, you'd need to either use Hime's scene interpreter or a script for troop common event, else you'd add this event to all troops), you can possibly utilize my Turn Extension script, such that you would set the equipment to add the state to the user every turn start...