View Single Post
ploturo
Member
 
Join Date: May 2021
Posts: 84

Old July 30th, 2022, 07:28 PM
You can duplicate that adjustment using the editor, and make the following two changes:

1. Get rid of the text in the "Custom Expression" entry in the details, to remove the item selection menu.

2. Replace the script with this (for potions).
Code:
   ~ If we're not enabled, get out now
   doneif (field[pIsOn].value = 0)

   ~ iterate over picks in hero container and tag all potions as free
   foreach pick in hero from MyGear where "gType.OilPotion"
      perform eachpick.assign[Helper.Free]
   nexteach
For scrolls, the relevant tag would be "gType.Scroll" instead.
ploturo is offline   #2 Reply With Quote