#nop // Written by sqweekette@yahoo.com #nop // Oh yeah, I am so f--king good. *flex* #nop // This trigger set works out what word it should use to identify #nop // weapons based on what you type to wield it (pretty simple solution #nop // in the end) #nop // This allows you to do cool stuff like set an alias to remove $weptwo, #nop // hold a white wand, zap yourself, remove the wand, and wield your #nop // weapon again #nop // Note that it may be necessary to write out your session details #nop // everytime you log off, and put the wepLong and wepShort variables #nop // below for the triggers to remember how to identify weapons. #nop // Also, note that you have to use 'wield' when wielding weapons #nop // or it won't work. I had to alias wield to set a variable, and #nop // then 'wear' the weapon. If you just wear the weapon, it won't #nop // work. #nop #alias {w1} {#var {wepone} {%%0}; #showme Primary weapon is now %0} #alias {w2} {#var {weptwo} {%%0}; #showme Secondary weapon is now %0} #nop #variable {wepFound} {0} #variable {wepPos} {0} #nop #variable {wepLong} {a sharp shard of obsidian, thornblade} #variable {wepShort} {obsidian, thornblade} #nop #alias {addWep} {#push {wepShort} {%%0}} #alias {addWepName} {#push {wepLong} {%%0}} #action {You wield %0.} {#var {wepTest} {%%0}; #var {wepPos} {0}; #var {wepFound} {0}; #loop {$wepLong} {#math {wepPos} {$wepPos+1}; #if {[%%0]=[$wepTest]} {#var {wepFound} {$$wepPos}}}; #if {$wepFound=0} {#push {wepLong} {$$wepTest}; #push {wepShort} {$$wepLast}; w1 $wepLast} else {#loop {$wepShort} {#math {wepFound} {$wepFound-1}; #if {$wepFound=0} {w1 %0}}}} #action {You dual wield %0.} {#var {wepTest} {%%0}; #var {wepPos} {0}; #var {wepFound} {0}; #loop {$wepLong} {#math {wepPos} {$wepPos+1}; #if {[%%0]=[$wepTest]} {#var {wepFound} {$$wepPos}}}; #if {$wepFound=0} {#push {wepLong} {$$wepTest}; #push {wepShort} {$$wepLast}; w2 $wepLast} else {#loop {$wepShort} {#math {wepFound} {$wepFound-1}; #if {$wepFound=0} {w2 %0}}}} #alias {wield} {#var {wepLast} {%%0}; wear %0}