Trigs
From BatWiki
- CLASS {Prots}
- ALIAS poff {#deli prots %-1;#deli sticky %-1;#if (%2!="") {party say ~# %-2 expires (@formattime(@{%1}))} {party say ~# %1 expires (@formattime(@{%1}))};;#unvar "%1" {Prots|timers}}
- ALIAS pon {#addi prots {%-1};timer {%-1}}
- ALIAS pr {#var timedprots "";#var prots %sort( @prots);#if (@prots="" AND @stickycount > 0) {party say Prots? Yes please. sticky(@stickycount)} {#forall @prots {#if (%ismember( %{i}, @sticky)) {#addi timedprots {%i~{@formattime(@%{i})~}}} {#addi timedprots {%{i}~(@formattime(@%{i})~)}}};#if %ismember( "Unstun(0:00)", @timedprots) {#deli timedprots Unstun(0:00);#addi timedprots Unstun};#if (@stickycount > 0) {#addi timedprots sticky(@stickycount)};#if (@timedprots != "") {party say prots: %expandlist( @timedprots, " ")}};#if (@prots="" AND @stickycount = 0) {party say Prots? %item( @noprots, %random( 1, %numitems( @noprots)))}}
- ALIAS spon {#addi prots %1;#addi sticky %1;timer %1;party say ~# %1 up. (sticky);#add stickycount -1}
- ALIAS timer {#var %1 {~%eval(~%ctime-%ctime)} {0} {Prots|timers}}
- VAR formattime {%if( %1<60, 0, %eval( %1/60)):%if( %mod( %1, 60) < 10, 0%mod( %1, 60), %mod( %1, 60))}
- VAR myname {Osku}
- VAR prots {}
- VAR sticky {}
- VAR timedprots {}
- VAR conjutype {Force}
- VAR camp {No}
- VAR stickycount {0} {0}
- VAR noprots {Nope, still nothing.|Nothing here.|I wish I had some.|Yes please.|Pretty please?|Just a thick forehead here.|I heard they are for wimps. But I am a wimp.|For this monster? YES.|Why don't I have any?|Only Dogi runs without them.|Gimme some love. Oh and prots too, please.|Nothing to see here.|No antakaa nyt jotain edes!|Kaikilla mausteilla kiitos.|Nothing here, tweak again later.|Nothing here, I wish the conju wasn't afk.}
- REGEX {(?:^.\w+ tweaks your nose|^You tweak your own nose)} {pr}
- REGEX {^Moving to starting location\.$} {#if (%ctime > 60) {} {#var prots "";#var stickycount 0;#echo Prots cleared.}}
- REGEX {^The shimmering blue forcefield vanishes\.$} {poff shelter} "" {disable}
- REGEX {^This location is now surrounded in a shimmering blue forcefield\.$} {pon shelter} "" {disable}
- REGEX "changename" {^Name: (\w+)} {#var myname %1;#t- changename} "" {notrig}
- REGEX {This location is now surrounded in a shimmering blue forcefield\.$} {pon dome} "" {disable}
- REGEX {The shimmering blue forcefield vanishes\.$} {poff dome} "" {disable}
- REGEX {^([^;]+) appears weakened!} {poff degen;pon degen}
- REGEX {^You feel extra sticky for protection\.$} {#add stickycount 1}
- CLASS 0
- CLASS {Prots|timers}
- VAR Aura {0} {0}
- VAR Melody {%eval(%ctime-1264)} {0}
- VAR War {%eval(%ctime-1213)} {0}
- VAR Pff {0} {0}
- VAR poison {0} {0}
- VAR Ebl {0} {0}
- VAR Cold {0} {0}
- VAR Fire {0} {0}
- VAR Flex {0} {0}
- VAR AoA {0} {0}
- VAR Unp {0} {0}
- VAR hw {0} {0}
- VAR elec {0} {0}
- CLASS 0
- CLASS {Prots|Barbarian-p}
- REGEX {^You begin to concentrate on pain threshold\.$} {pon PT}
- REGEX {^Your concentration breaks and you feel less protected from physical damage\.$} {poff PT pain threshold}
- REGEX {^You no longer feel enraged\.$} {poff Enrage Enrage}
- REGEX {^in the air and shout.? 'FOR GROO!'} {pon Enrage} "" {disable}
- CLASS 0
- CLASS {Prots|Bard-p}
- REGEX {^The effect of war ensemble wears off\.$} {poff War war ensemble}
- REGEX {^You feel full of battle rage\! Victory is CERTAIN\!$} {pon War}
- REGEX {^(?:You embrace yourself with your melody\.|\w+ wraps you into an embracing melody\.)$} {pon Melody}
- REGEX {^The embracing melody subsides, leaving you longing for more\.$} {poff Melody}
- CLASS 0
- CLASS {Prots|Channellers-p}
- REGEX {^Suddenly a softly glowing aura of yellow light comes into being around you\.$} {pon Aura}
- REGEX {^Tendrils of lightning flit around you as your aura changes from flame red to\n^electric blue\.} {pon Aura}
- REGEX {^With a burst of energy, your aura changes from soft yellow to bright red\.$} {pon Aura}
- REGEX {^You try your hardest but cannot focus enough energy\.$} {pon Aura}
- REGEX {^Your aura is starting to weaken\!$} {#color 15;p' My aura weakens.;#alarm +2:00 {#if (@aura > 119) {#echo Load your aura already!} {}}}
- REGEX {^Your aura of glowing light fades to nothing\.$} {poff Aura Energy aura}
- REGEX {^You surround yourself by a bubble of force\.$} {pon Pff}
- REGEX {^Your field disperses with a soft \*pop\* and is gone\.$} {poff Pff Personal force field}
- CLASS 0
- CLASS {Prots|Conjurer-p}
- VAR conjuminor {fabs|fire|cold|elec|magic|asph|poison|acid|psi}
- VAR conjumajor {AoA|Fire|Cold|Elec|Magic|Asph|Poison|Acid|Psi}
- VAR spellwords {ztonez des deckers|hot hot not zeis daimons|skaki barictos yetz fiil|kablaaaammmmm bliitz zundfer|meke tul magic|qor monoliftus|morri nam pantoloosa|sulphiraidzik hydrochloodriz gidz zuf|toughen da mind reeez un biis}
- VAR flashes {skin brown|burning red|cold white|crackling blue|golden|dull black|green|disgusting yellow|transparent}
- VAR shields {crystal clear|crackling red-orange|frosty blue-white|neon purple|flickering golden|swirling foggy white|slimy olive green|bubbling yellow|misty pale blue}
- VAR conjutype {elec}
- VAR iwcheck {0} {0}
- VAR dmp {}
- REGEX {^\w+ (?:utter|utters) the magic words '(@spellwords)'$} {#pri {#var conjutype {%item( @conjuminor, %ismember( %1 , @spellwords))}}}
- REGEX {^You sense (a|an extra) powerful protective aura around you\.$} {#if ("%1" = "a") {pon @conjutype;party say ~# @conjutype prot. up};#if ("%1" = "an extra") {#addi sticky @conjutype;spon @conjutype}}
- REGEX {^A (@flashes) flash momentarily surrounds you and then vanishes\.$} {#var conjutype %item( @conjuminor, %ismember( %1 , @flashes));#if (%ismember( @conjutype, @prots)) {party say ~# @conjutype expires (@formattime(@@conjutype));#deli prots @conjutype;#deli sticky @conjutype} {}}
- REGEX {^You see (a|an extra) (@shields) shield fade into existance around you\.$} {#if ("%1" = "an extra") {spon %item( @conjumajor, %ismember( %2, @shields))};#if ("%1" = "a") {pon %item( @conjumajor, %ismember( %2, @shields))}} "" {notrig}
- REGEX {^Your (@shields) shield fades out\.$} {poff %item( @conjumajor, %ismember( %1, @shields)) %item( @conjumajor, %ismember( %1, @shields))}
- REGEX {^You feel no longer protected from being stunned\.$} {poff IW Iron will}
- REGEX {^You feel much more vulnerable\.$} {#forall @conjuminor {#if (%ismember( %i, @prots) AND NOT %ismember( %i, @sticky)) {poff %i %i} {}}}
- REGEX {^You feel unprotected\.$} {#forall @conjumajor {#if (%ismember( %i, @prots) AND NOT %ismember( %i, @sticky)) {poff %i %i} {}}}
- REGEX {^You feel protected from being stunned\.$} {pon IW}
- CLASS 0
- CLASS {Prots|Druid-p}
- REGEX {^You sense a flex shield covering your body like a second skin\.$} {pon Flex}
- REGEX {^Your flex shield wobbles, PINGs and vanishes\.$} {poff Flex Flex Shield}
- REGEX {^You feel your metabolism speed up\.$} {pon Regen}
- REGEX {^You no longer have a active regeneration spell on you\.$} {poff Regen Regeneration}
- REGEX {^The runic sigla '!\( \*\)' fade away\.\. leaving you feeling strange\.$} {poff Ebl Earth Blood}
- REGEX {^An icy chill runs through your veins\.} {pon Ebl}
- REGEX {^The runic sigla \'\% \!\^\' fade away\.\. leaving you feeling strange\.$} {poff Epow earth power}
- REGEX {^You feel your strength changing\. You flex you muscles experimentally\.} {pon Epow}
- CLASS 0
- CLASS {Prots|Evil Priest-p}
- REGEX {^A vile black aura surrounds you\.$} {pon pfg}
- REGEX {^You no longer have a vile black aura around you\.$} {poff pfg Protection from good}
- CLASS 0
- CLASS {Prots|Navigator-p}
- REGEX {^You suddenly feel magically heavier\.$} {pon hw}
- REGEX {^You feel lighter, but it doesn't seem to affect your weight\!$} {poff hw heavy weight}
- REGEX {^You feel magical forces binding the spell to you\.$} {#addi sticky hw}
- CLASS 0
- CLASS {Prots|Nun-p}
- REGEX {as you are surrounded by\n^protective holy aura\.} {pon pfe}
- REGEX {^(?:Your glow fades away and you suddenly feel more vulnerable to evil\.|You suddenly feel more vulnerable to evil\.)$} {poff pfe Protection from evil}
- REGEX {^(?:\w+ places her hand over you and blesses your soul in the name of Las\.|You spiritually reach out for your soul, protecting it with holy force\.)$} {pon soul}
- REGEX {^Your soul feels suddenly more vulnerable\.$} {poff soul soul shield}
- REGEX {vibrates under magical pressure as you are suddenly$\n^surrounded by millions of dazzling white particles dancing enchantedly around$\n^(?:your|her) body\.$} {pon Hprot}
- REGEX {^Holy particles slow down, rapidly fading away\.$} {poff Hprot Heavenly protection}
- CLASS 0
- CLASS {Prots|Poison-p}
- REGEX {^You shiver and suffer from POISON\!\!} {gnnn} "" {disable}
- REGEX {^You feel poison leaving your veins\.$} {piss;say It's gone!}
- CLASS 0
- CLASS {Prots|Psionicist-p}
- REGEX {^Your armour feels thinner\.$} {poff fsh force shield}
- REGEX {^@myname glows with a blue aura for a while\.$} {pon fsh}
- REGEX {^A fog lifts from your mind\. You can remember things clearly now\.$} {party say ~# forget removed!}
- REGEX {^You form a psionic shield of force around your body\.$} {pon fsh}
- CLASS 0
- CLASS {Prots|Tarmalen-p}
- TRIGGER {^You feel strong - like you could carry whole flat world on your back!$} {pon BoT}
- REGEX {^\w+'s chanting appears to do absolutely nothing\.$} {#addi prots Unstun;party say ~# Unstun UP}
- REGEX {^It doesn't hurt at all!$} {party say ~# Unstun USED;#deli prots Unstun}
- REGEX {^You are no longer stunned\.$} {#deli prots Unstun;party say ~# My stun wore off!}
- REGEX {^You feel weaker\.$} {#if (%ismember( Ki, @prots)) {poff Ki} {poff BoT Blessing of Tarmalen}}
- REGEX {^You start concentranting and feel the power flowing into your hands\.$} {pon Ki}
- REGEX {^You feel your will returning normal\.$} {poff Unp Unpain}
- REGEX {^You feel your will getting stronger\.$} {pon Unp}
- CLASS 0
- CLASS {Prots|Templar-p} {enable}
- TRIGGER {^Your glow disappears.} {poff SoF Shield of Faith}
- TRIGGER {^You are surrounded by divine glow!} {pon SoF}
- CLASS 0
- CLASS {Prots|zMisc-p}
- REGEX {^You feel light\.} {pon wwalk}
- REGEX {^You feel heavier\.$} {poff wwalk Water walking}
- TRIGGER {^Your feel excruciating pain in your head.} {p' my magic got suppressed. :(;pon suppress}
- TRIGGER {^You feel relieved.} {poff suppress suppress magic}
- CLASS 0