Welcome to the Achaea Forums! Please be sure to read the Forum Rules.
[HTML5] Trigger in an alias script

Lothenshal
Member Posts: 4 ✭
How does one create a trigger in an execute script box of an alias? Is there a #WAITFOR kind of trigger line that will allow me to do a certain action based on that? I really want to learn how to create/code triggers in a script. Temporary triggers or triggers only recognized within that script would probably be ideal. Ex: If I get equilibrium balance back, then do such and such. Any help will be greatly appreciated. Thanks! (Note: I have thought about using a function, but that still leaves the problem of coding a kind of waitfor trigger line before proceeding with the other commands type of situation. heh)
Tagged:
0
Comments
-
I haven't tried creating triggers in code, but I know that you can enable or disable triggers there.
So for example, you could create a trigger called EqBal that is disabled by default (uncheck the checkbox beside it). Now you can enable EqBal in your alias using:reflex_enable(reflex_find_by_name('trigger', 'EqBal'));
Don't forget to disable EqBal once it's done doing its thing; you could just addreflex_disable(reflex_find_by_name('trigger', 'EqBal'));
at the very end of EqBal's code.
0
Sign In to Comment.
Categories
- 6K All Categories
- 3K Everything Achaea
- 1.5K North of Thera
- 21 Archives of the Terraformer
- 240 The Matsuhama Arena
- 873 The Golden Dais of Creation
- 283 The Scarlattan Theatre
- 144 The Blank Canvas
- 1.9K Getting Help
- 391 General Questions
- 247 Quick Class Questions
- 1.3K Tech Support
- 298 Client Help
- 456 Curing Systems and Scripts
- 829 Off-Topic
- 250 The Wander Inn
- 579 The Universal Membrane
- 280 Class Discussions
- 280 Individual Class Sections
- 20 Alchemist
- 8 Apostate
- 29 Blademaster
- 9 Depthswalker
- 12 Druid
- 4 Infernal
- 20 Jester
- 19 Magi
- 30 Monk
- 9 Occultist
- 7 Paladin
- 7 Priest
- 28 Runewarden
- 17 Sentinel
- 24 Serpent
- 19 Shaman
- 9 Sylvan