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
Belmyrddyn
Magician


Joined: 17 Oct 2001
Posts: 371
Location: USA

PostPosted: Sat Mar 02, 2002 7:17 pm   

Alarm Help
 
Okay, I've got a class that checks my mana level every 30 seconds.... And immediately after I cast a spell. But for some bizarre reason, it causes a stack overflow. Any ideas why? I'm using version 6.26a.

#CLASS {Interface|Harness Sub Function}
#ALIAS CheckHarn {
#TEMP {Maximum Harness: (%d)} {
#VAR MHarn %1
#GAG
}
#TEMP {Current Harness: (%d)} {
#VAR CHarn %1
#GAG
}
#TEMP {You are set to share harnessed mana with others in your group.} {
#GAG
}
#TEMP {You are receiving full harness messages ~(HARNESS VERBOSE is set~).} {
#GAG
}
Harness
}
#TRIGGER {+30} {CheckHarn}
#ONINPUT {cast} {
cast
#ALARM +2 {CheckHarn}
}
#ONINPUT {harness} {CheckHarn}
#CLASS 0


Belmyrddyn
Reply with quote
Reddytedy
Apprentice


Joined: 13 Oct 2000
Posts: 114
Location: USA

PostPosted: Sat Mar 02, 2002 10:27 pm   
 
I would say this is the problem.

#ONINPUT {cast} {
cast
#ALARM +2 {CheckHarn}
}

Change that to either

#ONINPUT {cast} {#ALARM +2 {Checkharn}}

or #TRIGGER {You Gesture} {CheckHarn}


Come play with us in Dragonrealms

http://www.play.net/dr
Reply with quote
Belmyrddyn
Magician


Joined: 17 Oct 2001
Posts: 371
Location: USA

PostPosted: Sun Mar 03, 2002 12:28 am   
 
Tried this... still didn't work.

Belmyrddyn
Reply with quote
Reddytedy
Apprentice


Joined: 13 Oct 2000
Posts: 114
Location: USA

PostPosted: Sun Mar 03, 2002 2:45 am   
 
quote:

Tried this... still didn't work.

Belmyrddyn



I would say seperate em into deperate triggers that are permanent.
#ALARM {+30} {#SEND mana} {ManaChecker}
#TRIGGER {Maximum Harness: (%d)} {#GAG;#VAR maxharn %1} {ManaChecker}
#TRIGGER {Current Harness: (%d)} {#GAG;#VAR Curharn %1} {ManaChecker}
#TRIGGER {You are set to share harnessed mana with others in your group} {#GAG} {Environment}
#TRIGGER {You are receiving full harness messages ~(HARNESS VERBOSE is set~).} {#GAG} {Environment}
#TRIGGER {You gesture} {mana} {ManaChecker}

Come play with us in Dragonrealms

http://www.play.net/dr
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Mar 03, 2002 4:12 am   
 
Since you posted both here and in the beta forum I will just say see the reply in the beta forum for the answer. The secret is in the send command.
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