diff options
author | Haru <haru@dotalux.com> | 2019-03-11 03:35:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 03:35:51 +0100 |
commit | e78a3b536566c1ff15960fa747995ac5b6307112 (patch) | |
tree | d46057baa4e501767e1dc795f7a6242a62d32c72 /doc | |
parent | ca315dcb6f8ba435beedc9c1a5bff12194bccc72 (diff) | |
parent | 433fd264ece900b8c563946737bbd4a73933c50a (diff) | |
download | hercules-e78a3b536566c1ff15960fa747995ac5b6307112.tar.gz hercules-e78a3b536566c1ff15960fa747995ac5b6307112.tar.bz2 hercules-e78a3b536566c1ff15960fa747995ac5b6307112.tar.xz hercules-e78a3b536566c1ff15960fa747995ac5b6307112.zip |
Merge pull request #2396 from AnnieRuru/67-mobattached
* Add *mobattached and *killmonstergid script command
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index f2852e93e..9655e907c 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -266,8 +266,8 @@ direction across Y. Walking into that area will trigger the NPC. If no 'OnTouch:' special label is present in the NPC code, the execution will start from the beginning of the script, otherwise, it will start from the 'OnTouch:' label. Monsters can also trigger the NPC, though the label -'OnTouchNPC:' is used in this case. If player left area npc will called -if present label 'OnUnTouch'. +'OnTouchNPC:' is used in this case, and using mobattached() will return +monster GID. If player left the area will trigger the label 'OnUnTouch'. The code part is the script code that will execute whenever the NPC is triggered. It may contain commands and function calls, descriptions of @@ -6507,6 +6507,14 @@ other number for this parameter won't be recognized. --------------------------------------- +*killmonstergid(<GID>); + +This command will kill the specific monster GID. The difference between +this command and 'unitkill', is this command does not trigger monster's +event label. + +--------------------------------------- + *strmobinfo(<type>, <monster id>) This function will return information about a monster record in the @@ -6595,6 +6603,17 @@ will run as if by donpcevent(). --------------------------------------- +*mobattached() + +This command will return RID of the monster running from 'OnTouchNPC:' label. + + +// Kill any monster entering npc's trigger area +OnTouchNPC: + killmonstergid mobattached(); + +--------------------------------------- + *homevolution() This command will try to evolve the current player's homunculus. |