Mar 212009
Achaea MUD ZMud script for various reflex actions. Useful to anyone simply for the text highlights.
#CLASS {Reflex} #CLASS 0 #CLASS {Reflex|Theft} #ALIAS _TheftPrevention { #IF (not @Mud.Logging) {#BUTTON Log} #IF (not @Personal.ItemLockDown) {#BUTTON bItemLockDown} } #TRIGGER {^A dark stream of primal chaos flows out of your being.$} { _Alert SOULMASTER _TheftPrevention lose soulmaster } #TRIGGER {^You feel your will manipulated by the soulmaster entity.$} { _Alert SOULMASTER _TheftPrevention lose soulmaster } #TRIGGER {^(%w) snaps h?? fingers in front of you.$} { _Alert THEFT ATTEMPT BY %1 yell %1 trying to rob me _TheftPrevention } "" {case} #TRIGGER {^You drop a canvas backpack.$} { take pack231879 wear pack231879 _TheftPrevention } #TRIGGER {^You remove a canvas backpack.$} { _Alert THEFT ON PACK wear pack231879 _TheftPrevention } #CLASS 0 #CLASS {Reflex|Theft|TheftLockdown} #VAR Cloths {shirt|trousers|pack|shoes|boxers|vest|cloak} #TRIGGER {^You get %d gold sovereigns from a canvas backpack.$} {put gold in pack} #TRIGGER {^You remove *({@Cloths}).$} {wear %1} #TRIGGER {^You take a[n ](*) from a canvas backpack.$} {put %1 in pack} #CLASS 0 #CLASS {Reflex|Fishing} #TRIGGER {^You feel a fish nibbling on your hook.$} {#ALARM +2.1 {tease line}} #TRIGGER {^You stagger as a fish makes a large strike at your bait.$} { #COLOR bright,red #ALARM +1.5 {JERK POLE} } #TRIGGER {^You feel a fish make a small strike at your bait.$} { #COLOR bright,red #ALARM +2.1 {tease line} } #TRIGGER {^You see the water ripple as a fish makes a medium strike at your bait.$} { #COLOR bright,red #ALARM +1.7 {JERK POLE} } #TRIGGER {^You quickly jerk back your fishing pole and feel the line go taut.} { #ADDKEY Personal Balance 0 #EXEC _WaitForEQBal #EXEC _SendCommandOnPrompt "REEL LINE" } #TRIGGER {^Relaxing the tension on your line, you are able to reel again.$} { _WaitForEQBal #ADDKEY Personal Balance 0 #EXEC _SendCommand "REEL LINE" } #TRIGGER {bait hook with worm -------- cast line direction} {} "" {disable} #CLASS 0 #CLASS {Reflex|Gold} #TRIGGER {* sovereigns spills from the corpse.$} { #IF (@Personal.Hunting) { #EXEC _ActionAdd Take gold #EXEC _ActionAdd Put "gold|pack" } } "" {disable} #CLASS 0 #CLASS {Reflex|QuestItems} #TRIGGER {^A %w iconic shard appears and clatters to the ground.$} {#IF (@Personal.Hunting) {#EXEC _ActionAdd Take shard}} #TRIGGER "TrigDeathFall" {* (%w) %w {out of|from} the corpse*} { #IF (@Personal.Hunting and not @Personal.LeaveDeadDrops) { #EXEC _ActionAdd Take %1 #IF (%1=sovereigns) {#EXEC _ActionAdd Put "gold|pack"} } #ADDKEY Mud IgnoreNextPrompt 1 } #CLASS 0 #CLASS {Reflex|rCrystalism} #TRIGGER {^You lay your hands on the Master Crystal, and draw a (%w) from it.$} {#EXEC _SendCommandOnPrompt "inr %1"} #CLASS 0