So my script request is basically the title.
Essentially what I want to do it have an sedative, and have it set so that when I use it on someone that is berserk then they loose their berserk status, but when I use it on someone that isn't berserk they get put to sleep. (Or I could have a hyper that wakes someone up, or if they're already awake, sets them to berserk.)
I was hoping that someone could make a script that would let me set this in the notes section of an item. (For example having a note on Sedative saying <if not state 30(berserk) then set state04(sleep) 100%>.)
Any help would be appreciated.
A slight note: I know it's possible to do this with a mix of states and common events, but in order to do that you'd need 2 states, 2 conditional branches and 3 change states for every status effect, times the amount of actors. So for 10 actors and 10 status affecting items you'd need 20 states, 200 conditional branches and 300 change states. So it would be far simpler, far nicer to look at and far less likely for someone to miss out something if a script could be used.
The common event I'm currently using looks something like this for those interested:
Essentially what I want to do it have an sedative, and have it set so that when I use it on someone that is berserk then they loose their berserk status, but when I use it on someone that isn't berserk they get put to sleep. (Or I could have a hyper that wakes someone up, or if they're already awake, sets them to berserk.)
I was hoping that someone could make a script that would let me set this in the notes section of an item. (For example having a note on Sedative saying <if not state 30(berserk) then set state04(sleep) 100%>.)
Any help would be appreciated.
A slight note: I know it's possible to do this with a mix of states and common events, but in order to do that you'd need 2 states, 2 conditional branches and 3 change states for every status effect, times the amount of actors. So for 10 actors and 10 status affecting items you'd need 20 states, 200 conditional branches and 300 change states. So it would be far simpler, far nicer to look at and far less likely for someone to miss out something if a script could be used.
The common event I'm currently using looks something like this for those interested:
Conditional Branch: [Eric] is [Using Hyper] Inflicted Conditional Branch: [Eric] is [Sleep] Inflicted Change State [Eric], - [Sleep] Else Change State [Eric], + [Berserk] Branch End Change State [Eric], - [Using Hyper]ElseBranch EndConditional Branch: [Eric] is [Using Sedative] Inflicted Conditional Branch: [Eric] is [Berserk] Inflicted Change State [Eric], - [Berserk] Else Change State [Eric], + [Sleep] Branch End Change State [Eric], - [Using Sedative]ElseBranch EndAnd so on and so forth for every item and every actor. The items themselves set the [using ...] states on whoever the item is used on, which then trigger the appropriate actual states.