Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
TaisharMalkier
Novice


Joined: 28 Sep 2001
Posts: 45
Location: USA

PostPosted: Mon Mar 11, 2002 12:56 am   

Tryin a new alarm function
 
#TR {You feel your focus increase!} {#VARIABLE focusgauge 1400;#ALARM +(1400|1390|1380|1370|1360|1350|1340|1330|1320|1310|1300|1290|1280|1270|1260|1250|1240|1230|1220|1210|1200|1190|1180|1170|1160|1150|1140|1130|1120|1110|1100|1090|1080|1070|1060|1050|1040|1030|1020|1010|1000|990|980|970|960|950|940|930|920|910|900) {#VARIABLE focusguage 1400-(%1)}}

The problem is when the trigger fires, the alarm creates as follows...
#VARIABLE focusguage 1400-()
ALl of the times are correct but I can't get it to carry over the %1 from the trigger to the alarm

Contain rather than hurt.
Hurt rather than maim.
Maim rather than kill.
Kill rather than be killed.
Reply with quote
Reddytedy
Apprentice


Joined: 13 Oct 2000
Posts: 114
Location: USA

PostPosted: Mon Mar 11, 2002 1:54 am   
 
quote:

#TR {You feel your focus increase!} {#VARIABLE focusgauge 1400;#ALARM +(1400|1390|1380|1370|1360|1350|1340|1330|1320|1310|1300|1290|1280|1270|1260|1250|1240|1230|1220|1210|1200|1190|1180|1170|1160|1150|1140|1130|1120|1110|1100|1090|1080|1070|1060|1050|1040|1030|1020|1010|1000|990|980|970|960|950|940|930|920|910|900) {#VARIABLE focusguage 1400-(%1)}}

The problem is when the trigger fires, the alarm creates as follows...
#VARIABLE focusguage 1400-()
ALl of the times are correct but I can't get it to carry over the %1 from the trigger to the alarm

Contain rather than hurt.
Hurt rather than maim.
Maim rather than kill.
Kill rather than be killed.



Umm call me insane, but I don't see where you captured anything from the trigger to put into %1

Alan

Come play with us in Dragonrealms

http://www.play.net/dr
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Mar 11, 2002 2:09 am   
 
I don't have zMud in front of me but:

#VARIABLE focusguage [1400-(%1)]

Is the way you slip math into it.

The next issue is what is %1 when the alarm
fires.. maybe you can force the %1 to resolve
with:

#VARIABLE focusguage [1400-[%1]]

Not sure.

TonDiening
Beta Upgrading to 6.26
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Mar 11, 2002 4:47 am   
 
%1 is the first saved parameter from your trigger. Your trigger doesn't have any saved parameters. Therefore, %1 is a null variable and your alarm is precisely what you told zMUD to make it.

To make %1 the first parameter from the alarm, use two % signs because zMUD will strip one percent sign each time it interprets it.
#TR {You feel your focus increase!} {#VARIABLE focusgauge 1400;#ALARM +(1400|1390|1380|etc|900) {#VARIABLE focusguage 1400-(%%1)}}

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net