Re: Вопрос по кодингу zMUDа. - Delving , 06.08.2002 11:35 MSK | ||
#CLASS {tickevent} #TRIGGER {The sun rises in the east.} {ts} #TRIGGER {The sun slowly disappears in the west.} {ts} #TRIGGER {The day has begun.} {ts} #TRIGGER {You are thirsty.} {ts;#if @slp {wake};#if @slp {sta};dfb;dfb;#if @slp {sl}} #TRIGGER {You are hungry.} {ts;#if @slp {wake};#if @slp {sta};ef;ef;#if @slp {sl}} #TRIGGER {It starts to rain.} {ts} #TRIGGER {The night has begun.} {ts} #TRIGGER {Your fly spell just wore off...Hope you are not in the air.} {ts} #TRIGGER {The clouds disappear.} {ts} #TRIGGER {The rain stopped.} {ts} #CLASS 0 #CLASS {stat} #TRIGGER { < %1hp %2ma %3mv > } {#if %2 > @mana {ts};#var hp %1;#var mana %2;#var move %3} #CLASS 0 #CLASS {spells} #TRIGGER {TICK IN %1 SECONDS.} {#IF @stonetick {#math stonetick @stonetick-1};#IF @strtick {#math strtick @strtick-1};#IF @detecttick {#math detecttick @detecttick-1};#IF @flytick {#math flytick @flytick-1}} #TRIGGER {Your eyes tingle.} {#math detecttick @lma*5;#var detect ON} #TRIGGER {The detect invisible wears off.} {#var detect OFF;#var detecttick 0} #TRIGGER {You feel stronger.} {#var str ON;#var strtick @lma} #TRIGGER {You feel weaker.} {#var str OFF;#var strtick 0} #TRIGGER {You feel your skin become much, much stronger.} {#var stoneskin ON;#var stonetick 24} #TRIGGER {You feel less protected.} {#var stoneskin OFF;#var stonetick 0} #TRIGGER {You feel very light on your feet.} {#var fly ON;#var flytick 20} #TRIGGER {Your fly spell just wore off...Hope you are not in the air.} {#var fly OFF;#var flytick 0} #CLASS 0 у меня примерно так | ||
|