|
Belmyrddyn Magician
Joined: 17 Oct 2001 Posts: 371 Location: USA
|
Posted: 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 |
|
|
|
Reddytedy Apprentice
Joined: 13 Oct 2000 Posts: 114 Location: USA
|
Posted: 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 |
|
|
|
Belmyrddyn Magician
Joined: 17 Oct 2001 Posts: 371 Location: USA
|
Posted: Sun Mar 03, 2002 12:28 am |
Tried this... still didn't work.
Belmyrddyn |
|
|
|
Reddytedy Apprentice
Joined: 13 Oct 2000 Posts: 114 Location: USA
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
|
|
|