View Single Post
Lord Magus
Senior Member
 
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 464

Old December 30th, 2021, 07:07 PM
Now trying to code for a "generic" item that can improve one of the wearer's affinities. I want to use a dropdown selector to allow the player to choose which item slot the item occupies.

Selection: Magic Item Slots
Restriction: None
First-500
Code:
~  We establish the item slot

~ If we're not equipped, get out now
  doneif (field[gIsEquip].value = 0)
~ If slot not chosen, get out now
  doneif (field[usrChosen2].ischosen = 0)

   perform field[usrChosen2].chosen.pulltags[Hero.?]
   perform pushtags[Hero.?]
This does not work. I think this is because usrChosen2 is not "EqpSLOT" (eg EqpFoot) but is "isEqpSLOT" instead. How can I make the slot chosen be applied to the item?
Lord Magus is offline   #6 Reply With Quote