Howdy! 
I'm hoping to create a fun (and hopefully pretty simple) little perk for a merchant character.
What I'm hoping to create is a script that, when the actor has a certain notetag, refunds them a percentage of an item's cost whenever they use an item. Something along the lines of <refund(x,y)> where X is the percentage of the price to refund, and Y is the chance for the refund to happen. So someone with the tag <refund(30,50)> would have a 50% chance to refund 30% of an item's cost upon use.
For future-proof sake (and for anyone else that may want to use this script), having the tag work on actor/class/weapon/armor/state(?) would be really nice. It'd be pretty cool if this could have a message in the battle log too, if that isn't too difficult.
Hopefully that all makes sense. If there's anything you'd like me to clarify or elaborate on, please make sure to ask.
Thank you!
I'm hoping to create a fun (and hopefully pretty simple) little perk for a merchant character.
What I'm hoping to create is a script that, when the actor has a certain notetag, refunds them a percentage of an item's cost whenever they use an item. Something along the lines of <refund(x,y)> where X is the percentage of the price to refund, and Y is the chance for the refund to happen. So someone with the tag <refund(30,50)> would have a 50% chance to refund 30% of an item's cost upon use.
For future-proof sake (and for anyone else that may want to use this script), having the tag work on actor/class/weapon/armor/state(?) would be really nice. It'd be pretty cool if this could have a message in the battle log too, if that isn't too difficult.
Hopefully that all makes sense. If there's anything you'd like me to clarify or elaborate on, please make sure to ask.
Thank you!
