Back to "weapon" tags

Poison_CurrentWeapon by Chase

Description: sets weapon in the left or right hand as a saved variable and tries to poison it if green potions are in your bag.

1if findlayer self righthand as found
2    @setvar! weapon_equipped found
3elseif findlayer self lefthand as found
4    @setvar! weapon_equipped found
5else
6    overhead "Unknown or no weapon equipped" 34
7    stop
8endif  
9getlabel weapon_equipped desc
10if "poison charges" in desc
11    overhead "Weapon poisoned: {{desc}}"
12else
13    if findtype "Green Potion" backpack
14        menu weapon_equipped 0
15    else
16        overhead "No poison pots" 34
17    endif
18endif