|
Daje Newbie
Joined: 08 Oct 2007 Posts: 5
|
Posted: Fri Jun 27, 2008 5:37 pm
#alarm and %alarm question |
EDIT: Nevermind I figured it out. In case anybody wants to know though I'll post it at the bottom.
Hello! First off I'll give you a little background info. I play Achaea, I'm sure a few of you have heard of it if not, no big deal, but I'm trying to setup an alarm sequence that essentially counts down until something happens, and output in a status window via a variable. I really can't seem to get it to work and I've been working on it for a while and figured I'd better just come here to get help. Here's the basic example of what I'm trying to do, I'll show you after that what, specifically in Achaea I'm trying to do in case anyone reading this plays.
Essentially its an action/reaction type of thing, where I do an action, the opponent has a reaction that takes 10 seconds until it is in effect. For instance, I punch a guy named John in the face, we want to count down until he rubs his cheek (assuming every time it takes 10 seconds).
You punch John in the face.
Status window shows:
John rubs his cheek in: @countVar
Now, the application in achaea would be (in case nobody understood my lame example):
You raze @target's aura of rebounding with (*).
Count until their aura of rebounding comes back up (takes 10 seconds).
I was using this trigger, but it doesn't seem to work...
#alarm "ereboundingA" {+10} {alert Enemy Rebounding coming up}
#alarm {+1} {etimeLeft = %alarm( ereboundingA)}
This is the script that I figured out works:
#alarm "ereboundingA" {+10} {alert Enemy Rebounding coming up}
#alarm {*1} {etimeLeft = %alarm( ereboundingA)} |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Fri Jun 27, 2008 6:53 pm |
Code: |
#CLASS {stuff}
#VAR etimeleft {-1}
#VAR target {Bob}
#TRIGGER {You raze @target's aura of rebounding with (*).} {
#var etimeleft 10
#call %alarm(example,*1)
}
#ALARM "example" {*1} {
#add etimeleft -1
#if (@etimeleft < 1) {#SUSPEND example}
}
#STAT {You have @etimeleft}
#CLASS 0 |
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
|
|
|
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
|
|