Mercurial > hg > batmud > ggrtf
changeset 595:3cb2f995ad46
Make skill/spell "spam" optional
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 20 Jan 2007 20:44:27 +0000 |
parents | 1fe26fa52db5 |
children | 71dc4342f92f |
files | ggrtf-magical.tf ggrtf.tf |
diffstat | 2 files changed, 12 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/ggrtf-magical.tf Sat Jan 20 16:32:48 2007 +0000 +++ b/ggrtf-magical.tf Sat Jan 20 20:44:27 2007 +0000 @@ -119,7 +119,7 @@ ; cast_info_t - target of skill/spell (empty if no target) ;; Start of spell -/def -i -p9999 -ag -msimple -t"You start chanting." gspell_start =\ +/def -i -p9999 -msimple -t"You start chanting." gspell_start =\ /set ceremony_st=off%;\ /set spell_t=$[time()]%;\ /set cnt_casts=$[cnt_casts+1]%;\ @@ -129,19 +129,19 @@ /set spell_hastes=0%;\ /set spell_ghastes=0%;\ /set cast_info=SP%;/set cast_info_n=%;/set cast_info_t=%;@@cast info%;\ - /msq @{BCyellow} ---- SPELL START ---- @{n} (@{Cyellow}%{cnt_casts}@{n})%;\ + /mss @{BCyellow} ---- SPELL START ---- @{n} (@{Cyellow}%{cnt_casts}@{n})%;\ /gstatus_update ;; Spell done -/def -i -p9999 -ag -msimple -t"You are done with the chant." gspell_end =\ +/def -i -p9999 -msimple -t"You are done with the chant." gspell_end =\ /set cnt_trounds=$[cnt_trounds+spell_rcount]%;\ /set cnt_scasts=$[cnt_scasts+1]%;\ /set spell_st=off%;\ /set spell_st2=on%;\ /set cast_info=%;\ /set cnt_ctime=$[cnt_ctime+time()-spell_t]%;\ - /msq @{Cbggreen} ---- SPELL DONE ---- @{n} in [@{BCred}%{spell_rcount}@{n}] @{BCgreen}rounds!@{n} @{Cyellow}$[prgetstime(spell_t)]@{n}%;\ + /mss @{Cbggreen} ---- SPELL DONE ---- @{n} in [@{BCred}%{spell_rcount}@{n}] @{BCgreen}rounds!@{n} @{Cyellow}$[prgetstime(spell_t)]@{n}%;\ /gstatus_update
--- a/ggrtf.tf Sat Jan 20 16:32:48 2007 +0000 +++ b/ggrtf.tf Sat Jan 20 20:44:27 2007 +0000 @@ -1,8 +1,8 @@ ;; ;; GgrTF v0.6.1.16-svn - TinyFugue script for BatMUD -;; (C) Copyright 2004-2006 Matti Hämäläinen (Ggr Pupunen) +;; (C) Copyright 2004-2007 Matti Hämäläinen (Ggr Pupunen) ;; -/set ggrtf_ver=0.6.1.16-svn +/set ggrtf_ver=0.6.1.17-svn ;; ;; This triggerset is Free Software distributed under ;; GNU General Public License version 2. @@ -98,6 +98,7 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; /def msw = /echo -p %* /def msq = /echo -p @{BCwhite}GgrTF@{n}: %* +/def mss = /if (opt_skspam=~"on") /substitute -p @{BCwhite}GgrTF@{n}: %*%;/endif /def gerror = /msq @{BCred}ERROR!@{n} %* /def gwarning = /msq @{BCred}WARNING!@{n} %* /def goutput = %* @@ -663,6 +664,7 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Define some generic option toggles and settings /prdeftoggle -n"verbose" -d"Verbose (off = echo to client only)" +/prdeftoggle -n"skspam" -d"Skill/Spell start/end 'lite' spam" /prdeftoggle -n"rrounds" -d"Report spell/skill rounds" /prdeftoggle -n"autopss" -d"Auto party short status" /prdeftoggle -n"info" -d"Cast/skill information in prompt" @@ -1389,24 +1391,24 @@ /endif ;; Start of skill -/def -i -p9999 -ag -msimple -t"You start concentrating on the skill." gskill_start =\ +/def -i -p9999 -msimple -t"You start concentrating on the skill." gskill_start =\ /set skill_t=$[time()]%;\ /set cnt_skills=$[cnt_skills+1]%;\ /set skill_st=on%;\ /set skill_st2=off%;\ /set cast_info=SK%;/set cast_info_n=%;/set cast_info_t=%;@@cast info%;\ - /msq @{BCyellow} ---- SKILL START ---- @{n} (@{Cyellow}%{cnt_skills}@{n})%;\ + /mss @{BCyellow} ---- SKILL START ---- @{n} (@{Cyellow}%{cnt_skills}@{n})%;\ /gstatus_update ;; Skill done -/def -i -p9999 -ag -msimple -t"You are prepared to do the skill." gskill_end =\ +/def -i -p9999 -msimple -t"You are prepared to do the skill." gskill_end =\ /set cnt_sskills=$[cnt_sskills+1]%;\ /set skill_st=off%;\ /set skill_st2=on%;\ /set cast_info=%;\ /set cnt_sktime=$[cnt_sktime+time() - skill_t]%;\ - /msq @{Cbggreen} ---- SKILL DONE ---- @{n} @{Cyellow}$[prgetstime(skill_t)]@{n}%;\ + /mss @{Cbggreen} ---- SKILL DONE ---- @{n} @{Cyellow}$[prgetstime(skill_t)]@{n}%;\ /gstatus_update