(Created page with "====Command & Spells==== =====Command.Load(ByVal CommandName As String, ByVal FileName As String, Optional silent As Boolean = False)===== *Description=''Load a skill dynami...") |
|||
Line 2: | Line 2: | ||
− | =====Command.Load( | + | =====Command.Load(CommandName As String, FileName As String, Optional silent As Boolean = False)===== |
*Description=''Load a skill dynamically. This is good specifically when you don't need specific scripts unless a requirement has been hit, such as a class requirement or level requirement.'' | *Description=''Load a skill dynamically. This is good specifically when you don't need specific scripts unless a requirement has been hit, such as a class requirement or level requirement.'' | ||
;'''Values''' | ;'''Values''' | ||
Line 11: | Line 11: | ||
− | =====Spell.Load( | + | =====Spell.Load(CommandName As String, FileName As String, Optional silent As Boolean = False)===== |
*Description=''Load a spell dynamically. This is good specifically when you don't need specific scripts unless a requirement has been hit, such as a class requirement or level requirement.'' | *Description=''Load a spell dynamically. This is good specifically when you don't need specific scripts unless a requirement has been hit, such as a class requirement or level requirement.'' | ||
;'''Values''' | ;'''Values''' | ||
Line 20: | Line 20: | ||
− | =====Command.Unload( | + | =====Command.Unload(CommandName As String, Optional silent As Boolean = False)===== |
*Description=''Unload a skill dynamically.'' | *Description=''Unload a skill dynamically.'' | ||
;'''Values''' | ;'''Values''' | ||
Line 28: | Line 28: | ||
− | =====Spell.Unload( | + | =====Spell.Unload(CommandName As String, Optional silent As Boolean = False)===== |
*Description=''Unload a spell dynamically.'' | *Description=''Unload a spell dynamically.'' | ||
;'''Values''' | ;'''Values''' | ||
Line 36: | Line 36: | ||
− | =====Spell.Process( | + | =====Spell.Process(argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean===== |
*Description=''Uses a spell. Generally this is used by a monster when you want to call a spell at a certain point. Must be a loaded spell (Spell.Load)'' | *Description=''Uses a spell. Generally this is used by a monster when you want to call a spell at a certain point. Must be a loaded spell (Spell.Load)'' | ||
;'''Values''' | ;'''Values''' | ||
Line 46: | Line 46: | ||
− | =====Command.Process( | + | =====Command.Process(argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean===== |
*Description=''Uses a command. Generally this is used by a monster when you want to call a command at a certain point. Must be a loaded command (Command.Load)'' | *Description=''Uses a command. Generally this is used by a monster when you want to call a command at a certain point. Must be a loaded command (Command.Load)'' | ||
;'''Values''' | ;'''Values''' |
Latest revision as of 14:30, 5 October 2018
Contents
- 1 Command & Spells
- 1.1 Command.Load(CommandName As String, FileName As String, Optional silent As Boolean = False)
- 1.2 Spell.Load(CommandName As String, FileName As String, Optional silent As Boolean = False)
- 1.3 Command.Unload(CommandName As String, Optional silent As Boolean = False)
- 1.4 Spell.Unload(CommandName As String, Optional silent As Boolean = False)
- 1.5 Spell.Process(argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean
- 1.6 Command.Process(argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean
Command & Spells
Command.Load(CommandName As String, FileName As String, Optional silent As Boolean = False)
- Description=Load a skill dynamically. This is good specifically when you don't need specific scripts unless a requirement has been hit, such as a class requirement or level requirement.
- Values
- CommandName=The skill name that will be used via a command.
- FileName=The file name. This already starts in the 'Scripts/Commands' folder.
- silent=(OPTIONAL) Should we announce to the player that the spell was added?
- Example=Command.Load("roar", "npc/roar")
Spell.Load(CommandName As String, FileName As String, Optional silent As Boolean = False)
- Description=Load a spell dynamically. This is good specifically when you don't need specific scripts unless a requirement has been hit, such as a class requirement or level requirement.
- Values
- CommandName=The spell name that will be used via a cast command.
- FileName=The file name. This already starts in the 'Scripts/Spells' folder.
- silent=(OPTIONAL) Should we announce to the player that the spell was added?
- Example=Spell.Load("beam", "beam")
Command.Unload(CommandName As String, Optional silent As Boolean = False)
- Description=Unload a skill dynamically.
- Values
- CommandName=The skill that should be unloaded.
- silent=(OPTIONAL) Should we announce to the player that the spell was added?
- Example=Command.Unload("roar")
Spell.Unload(CommandName As String, Optional silent As Boolean = False)
- Description=Unload a spell dynamically.
- Values
- CommandName=The spell that should be unloaded.
- silent=(OPTIONAL) Should we announce to the player that the spell was added?
- Example=Spell.Unload("beam")
Spell.Process(argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean
- Description=Uses a spell. Generally this is used by a monster when you want to call a spell at a certain point. Must be a loaded spell (Spell.Load)
- Values
- argv=The spell name to call.
- Index=The entity to cast this on. Is not required.
- isPlayerUse=Is this a player? True for player, False for monster.
- Returns=True is spell was called successful or not, false otherwise. Can be used to have requirements in the script file to call the spell.
- Example=Spell.Process("beam", 1, true)
Command.Process(argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean
- Description=Uses a command. Generally this is used by a monster when you want to call a command at a certain point. Must be a loaded command (Command.Load)
- Values
- argv=The command name to call.
- Index=The entity to cast this on. Is not required.
- isPlayerUse=Is this a player? True for player, False for monster.
- Returns=True is command was called successful or not, false otherwise. Can be used to have requirements in the script file to call the command.
- Example=Command.Process("roar")