view ggrtf-chann.tf @ 684:6f0452997253

Fixed expiration.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 05 Oct 2007 17:28:52 +0000
parents 9a9b66d52f83
children 20f20c1e8548
line wrap: on
line source

;;
;; GgrTF::Channellers - Channellers guild support @ BatMUD
;; (C) Copyright 2004-2006 Matti Hämäläinen (Ggr)
;;
;; This file (triggerset) is Free Software distributed under
;; GNU General Public License version 2.
;;
;; NOTICE! This file requires GgrTF (version 0.6.0 or later) to be loaded.
;;
/loaded GgrTF::Channellers

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Fails and fumbles
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
/prdeffail -c -F    -t"Oh no! You feel energy TEAR from your soul and spread throughout the world!"
/prdeffail -k -F    -t"Oh hell, you fumbled the skill and lost the salve!"


/def -i -ag -mregexp -t"^They can only take ([0-9]+) spell points\.$" chann_replecap =\
	/msr Replenish capped @ %{P1} sp

/def -i -ag -mregexp -t"^Leadership was stolen from you by ([A-Z][a-z]+)\.$" chann_ldrstolen =\
	/msq @{BCgreen}NOTICE!@{n} @{BCyellow}Leadership was stolen from you by@{n} @{BCred}%{P1}@{n}!


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Blast hits
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; You hurl dozens of globes of sizzling blue fire towards your enemies, which explode on contact!
; You hurl a dozen streaking red fireballs towards your enemies, which explode on contact!
; You hurl four head-sized balls of orange flame towards your enemies, which explode on contact!
; You hurl a handful of fist-sized white-hot fireballs towards your enemies, which explode on contact!
/def -i -p9999 -ag -mregexp -t"^You hurl [a-z -]+ towards your enemies, which explode on contact!$" chann_hit1 =\
	/test prspellhit("channelspray","enemies")


; You send forth a roaring blast of blue magic towards Bench and anything in the way!
; You send forth a thin laser-like red beam towards Bench and anything in the way!
; You send forth a bright stream of golden energy towards Bench and anything in the way!
; You send forth a humming beam of white energy towards Bench and anything in the way!
/def -i -p9999 -ag -mregexp -t"^You send forth a [a-z -]+ towards (.+ and anything in the way!)$" chann_hit2 =\
	/test prspellhit("channelray",{P1})


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Energy Aura
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Aura weakening
/def -i -p9999 -aCred -msimple -t"Your aura is starting to weaken!" rec_auraweak =\
	/set prot_eaura_weak=on%;/set prot_eaura_weak_t=$[time()]%;\
	/gstatus_update%;\
	/msr Energy Aura WEAKENING! $[prgetstime(prot_eaura_t)] / $[prgetstime(prot_eaura_t2)]

;; Aura recharged
/def -i -p9999 -aCred -mregexp -t"^(Not all is lost, however, you did just recharge your aura|You try your hardest but cannot focus enough energy|You try to focus more magic energy into your aura but get no useful result).$" rec_aurarecharged =\
	/set prot_eaura_weak=off%;\
	/set prot_eaura_t=$[time()]%;\
	/gstatus_update%;\
	/msr Energy Aura Reloaded! 

;; Aura off
/def -i -p9999 -aCred -msimple -t"Your aura of glowing light fades to nothing." rec_auraoff =\
	/set prot_eaura_weak=off%;\
	/proff eaura

;; Aura changes
/def -i -p9999 -aCred -msimple -t"You turn your aura down a step from red to gold." rec_aurach1 =\
	/set prot_eaura=1%;/gstatus_update

/def -i -p9999 -aCred -msimple -t"You turn your aura down a step from blue to red." rec_aurach2 =\
	/set prot_eaura=2%;/gstatus_update

;; Aura on
/def -i -p9999 -aCred -msimple -t"Suddenly a softly glowing aura of yellow light comes into being around you." rec_aura1 =\
	/pron eaura [Yellow]%;\
	/set prot_eaura=1%;\
	/set prot_eaura_weak=off%;\
	/gstatus_update%;\
	/set prot_eaura_t2=%{prot_eaura_t}

/def -i -p9999 -aCred -msimple -t"With a burst of energy, your aura changes from soft yellow to bright red." rec_aura2 =\
	/pron eaura [Red]%;\
	/set prot_eaura=2%;\
	/set prot_eaura_weak=off%;\
	/gstatus_update%;\
	/set prot_eaura_t2=%{prot_eaura_t}

/def -i -p9999 -aCred -mregexp -t"^Tendrils of lightning flit around you as your aura changes from flame red" rec_aura3 =\
	/pron eaura [Blue]%;\
	/set prot_eaura=3%;\
	/set prot_eaura_weak=off%;\
	/gstatus_update%;\
	/set prot_eaura_t2=%{prot_eaura_t}