diff options
author | Fate <fate-tmw@googlemail.com> | 2009-01-31 12:57:07 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-01-31 12:57:07 -0700 |
commit | d2bc97170e91765de7ab67b017085370a26e3f93 (patch) | |
tree | 4808258d8e6139f68e254a042318f3815a5f3047 /doc | |
parent | d62b01b62ac59e84c13782af2067f5669a97221e (diff) | |
download | tmwa-d2bc97170e91765de7ab67b017085370a26e3f93.tar.gz tmwa-d2bc97170e91765de7ab67b017085370a26e3f93.tar.bz2 tmwa-d2bc97170e91765de7ab67b017085370a26e3f93.tar.xz tmwa-d2bc97170e91765de7ab67b017085370a26e3f93.zip |
When running out of spell charges, make sure to use spell attack delay for last attack, too
Diffstat (limited to 'doc')
-rw-r--r-- | doc/spell-language | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/spell-language b/doc/spell-language index b4ef833..68c15c8 100644 --- a/doc/spell-language +++ b/doc/spell-language @@ -561,6 +561,9 @@ The following functions are available: PCs gain such experience points by killing/completing quests, though this `healer experience point pool' slowly drains itself. + + is_pc : entity -> bool + Determines whether the target is a player character + Operations: ----------- This section documents the operations API. @@ -629,8 +632,8 @@ This section documents the operations API. change has finished. + override_attack : entity * int * int - * int * int *int -> () - override_attack(entity, charges, delay, range, icon, animation) + * int * int *int * int -> () + override_attack(entity, charges, delay, range, icon, animation, stop) overrides the entity's current attack (only for PCs). The entity will have `charges' attacks that instead result in calling the ATTRIGGER effect for this spell. When this operation is called, @@ -643,6 +646,9 @@ This section documents the operations API. `icon' is the ID of a status-effect ID that will be displayed while the spell is in effect. `animation' is the attack animation ID that should be used. + `stop' decides whether attacking should stop once the spell is out + of charges (1) or continue (0). (Note: this doesn't properly work, + possibly due to client issues. Always use 0.) Note that if the ATTRIGGER effect ABORTs, no charge will be consumed. |