Hullo, me again.
I have been working on a menu that is based only on the Item Select window, and it's working really well for what I want. Essentially, the way it works is with two variables:
Item select - player selects Item X which is stored in Var1
If Var1 =/= Var2:
Show choices: A = Equip, B = Cancel
If A = Equip:
Var2 = Var1
And some stuff happens.
If Var1 = Var2:
Show choices: A = Unequip, B = Cancel
If A = Unequip:
Var 2 = 0
And some stuff happens.
My problem is that it is incredibly difficult to find any plugins or other functions that affect what the Item Select window looks like. Most plugins that affect the Menu don't apply the same to the Item Select window either. So while it has the right functionality, I can't make it look the way I want at all.
Therefore, I am thinking of changing back to using the item menu. Ideally, I want to make a common event trigger on item use that will do exactly the same as the above. However, I can't find any script command that would set Var1 to the ID of Item X in the same way the Select Item function does.
Ideally what would happen is:
1. Player selects item in menu (for example, "Seed1") - the item would be set to Scope: None, Consumable: No
2. Seed1 ID is stored in Var1
3. Options appear to equip/unequip or cancel (as above)
3. If "equip", stuff happens
Does anyone have ideas for how to make Step 2 happen? Is there a script call to find the ID of the currently used item that I just haven't spotted yet?
I am purposefully avoiding using armor/weapons at the moment, unless it would be otherwise impossible to do what I want. Thanks!
I have been working on a menu that is based only on the Item Select window, and it's working really well for what I want. Essentially, the way it works is with two variables:
Item select - player selects Item X which is stored in Var1
If Var1 =/= Var2:
Show choices: A = Equip, B = Cancel
If A = Equip:
Var2 = Var1
And some stuff happens.
If Var1 = Var2:
Show choices: A = Unequip, B = Cancel
If A = Unequip:
Var 2 = 0
And some stuff happens.
My problem is that it is incredibly difficult to find any plugins or other functions that affect what the Item Select window looks like. Most plugins that affect the Menu don't apply the same to the Item Select window either. So while it has the right functionality, I can't make it look the way I want at all.
Therefore, I am thinking of changing back to using the item menu. Ideally, I want to make a common event trigger on item use that will do exactly the same as the above. However, I can't find any script command that would set Var1 to the ID of Item X in the same way the Select Item function does.
Ideally what would happen is:
1. Player selects item in menu (for example, "Seed1") - the item would be set to Scope: None, Consumable: No
2. Seed1 ID is stored in Var1
3. Options appear to equip/unequip or cancel (as above)
3. If "equip", stuff happens
Does anyone have ideas for how to make Step 2 happen? Is there a script call to find the ID of the currently used item that I just haven't spotted yet?
I am purposefully avoiding using armor/weapons at the moment, unless it would be otherwise impossible to do what I want. Thanks!