Event Commands
Commands are sorted into various categories and allow you instruct and manipulate your events in various ways.
Dialogue
These commands allow you to display text in various ways to players
Show Text
Allows you to display a textbox that will pop up for the player.
- Text: This is the text to be displayed. Allows the use of Chat commands.
- Face: This allows you to select a face that will appear in the chatbox. These are in your â\resources\facesâ folder. You can see a preview of the face in the box to the side.
Show Options
Allows you to give options to the player.
- Text: This is the text to be displayed. Allows the use of Chat commands.
- Option 1-4: This will allow you to set the text for the button the player sees.
- Face: This allows you to select a face that will appear in the chatbox. These are in your â\resources\facesâ folder. You can see a preview of the face in the box to the side.
Using the Options Command
When you use the Options Command, you will have the associated tree for all options you entered. The event will work through the branch based on the playerâs input.
Input Variable
Asks the player to type something in, and then set it to a variable.
- Text: This is the text displayed to the user, typically telling them what they are meant to enter.
- Variable Type: The four radio buttons allow you to select if this is a Player, Guild, Global, or User variable.
- Variable Selection Box: The dropdown box will show you a list of all variables you have of the type selected.
- Minimum Value: The minimum number of characters for the player to enter.
- Maximum Value: The maximum number of characters for the player to enter.
Add Chatbox Text
Displays text in the chat window.
- Text: This is the text to be displayed. Allows the use of Chat commands.
- Color: The color the text will appear in the chat window.
- Channel: This decides what chat channel the text will appear in.
- Show Chat Bubble: This allows the event to display the text as a chat bubble like you would see from players.
Logic Flow
These commands allow you to control the flow of the event and edit variables.
Set Variable
Allows you to set a variable to a desired value.
- Select Variable Radio Button: Select the type of variable you wish to set; Player, Global, Guild, or User.
- Select Variable Dropdown: Once the variable type is selected, all variables of the desired type will be shown here. Choose which you want to set.
- Party Sync: Check this box if the variable being set should be set across all players in the party.
Boolean Variable Type
These options are specific to boolean variables.
- True: Sets the variable to true.
- False: Sets the variable to false.
- Player Variable Value: Sets to the same value as the selected player variable.
- Global Variable Value: Sets to the same value as the selected global variable.
- Guild Variable Value: Sets to the same value as the selected guild variable.
- User Variable Value: Sets to the same value as the selected user variable.
Integer Variable Type
These options are specific to integer variables.
- Integer Variable Radio Selection: Performs the selected operation.
Operation | Usage |
---|---|
Set | Sets the selected variable to the desired value. |
Add | Adds to the selected variable. |
Subtract | Subtracts from the selected variable. |
Multiply | Multiplies the selected variable. |
Divide | Divides the selected variable. |
LShift | Performs a left shift operation on the variable. Effectively a division by 2 for each lshift |
RShift | Performs a left shift operation on the variable. Effectively a multiplication by 2 for each lshift |
Random | Sets the selected variable to a random value between your selected Low and High ranges. |
System Time | Sets the variable to the current HOST COMPUTER system time in unix timestamp format. |
- Static Value Radio: Perform the top operation by a set value.
- Player Variable Value: Perform the top operation by using the selected player variable.
- Global Variable Value: Perform the top operaton by using the selected global variable.
- Guild Variable Value: Perform the selected opteration by using the selected guild variable.
- User Variable Value: Perform the selected operation by using the selected user variable.
Set Self Switch
Sets the self switch values of the event to the desired true/false value.
- Set Self Switch: Select which switch you are changing.
- Value dropdown: Sets the selected switch to true or false.
Conditional Branch
Conditional branches allow you to have different results based on variable values, user input, and many other options.
- Condition Type: Select what condition you will use to compare.
- Has Else Checkbox: Allows you to designate if there is an âelseâ statement to the condition.
- Negated Checkbox: If checked, it will look for the NOT version of the condition set.
The command screen will now have a section for if the condition is true, and if âHas Elseâ was selected, a direction to move on if the condition failed.
Condition Types
The following table is a summary of the condition types. Clicking any condition will take you to a breakdown of itâs window.
Condition | Use |
---|---|
Variable Is⊠| Checks the value of a variable. |
Has Item⊠| Checks if the player has an item. |
Class is⊠| Checks the playerâs class. |
Knows ability⊠| Checks if the player knows a given ability. |
Level or Stat is⊠| Checks the players level or given stat. |
Self Switch is⊠| Checks the value of a self switch. |
Power level is⊠| Checks the players power level. |
Time is between⊠| Checks the in-game time. |
Can Start Quest⊠| Checks if the player can start a given quest. |
Quest Completed⊠| Checks if the player has completed a given quest. |
No NPCâs on Map⊠| Checks if there are no NPCâs on the selected map. |
Gender is⊠| Checks the gender of the playerâs character. |
Map is⊠| Checks the Map that the player is currently on. |
Item Equipped is⊠| Checks if the player has a specific item equipped. |
Has X free Inventory slots⊠| Checks if the player has a specified number of free inventory slots. |
In Guild with at least Rank⊠| Checks the rank of the player within their guild. |
Map Zone Type is⊠| Checks the zone type of the map. |
Check Equipped Slot⊠| Checks for items in equipment slots. |
Condition: Variable isâŠ
Checks the value of a variable.
- Variable Selection Radio: Select the type of variable; Player, Global, Guild, or User.
- Variable Selection Dropdown: Selects the desired variable. Numeric Variables will have the followingâŠ
- Comparator: Select how you are comparing the variable. Depending on the type of variable you will have the options:
- Equal to: Check if the value is equal to your selection.
- Greater than or Equal to: Check if the value is equal to or higher than your selection.
- Less than or Equal to: Check if the value is equal to or lower than your selection.
- Greater than: Checks if the value is greater than your selection.
- Less than: Checks if the value is less than your selection.
- Does not Equal: True if the value is anything BUT your selection.
- Static Value Radio: Perform the top operation by a set value.
- Player Variable Value: Perform the top operation by using the selected player variable.
- Global Variable Value: Perform the top operaton by using the selected global variable.
- Guild Variable Value: Perform the selected opteration by using the selected guild variable.
- User Variable Value: Perform the selected operation by using the selected user variable. String Variables will have the followingâŠ
- Comparator: Select how you are comparing the variable. Depending on the type of variable you will have the options:
- Equal to: Check if the variable has the string as listed.
- Contains: Check if the string has the value listed anywher in it.
- Static Value: The text string you are checking against. Boolean Variables will haveâŠ
- Comparator: Select how you are comparing the variable. Depending on the type of variable you will have the options:
- Equal to: True if they match.
- Does not Equal: True if they donât match.
- True/False Radio: Declares if youâre comparing to true or false values.
- Player Variable Value: Perform the top operation by using the selected player variable.
- Global Variable Value: Perform the top operaton by using the selected global variable.
- Guild Variable Value: Perform the selected opteration by using the selected guild variable.
- User Variable Value: Perform the selected operation by using the selected user variable.
Condition: Has itemâŠ
This condition checks if the user posseses an item.
- Amount Type Radio: Allows you to set manual value or refer to a variable for the amount.
- Item Dropdown: Select the item that you are checking for.
- Check Bank: Allows you to include the characters bank in addition to their inventory.
Condition: Class isâŠ
Checks the playerâs class for the conditional.
- Class Dropdown: Select the class you want to check for.
Condition: Knows abilityâŠ
Check the players known abilities to see if they posses it.
- Spell Dropdown: Select the spell you want to check against.
Condition: Level or Stat isâŠ
Check the playerâs level or a given stat and itâs value.
- Level or Stat Dropdown: Select which you are wanting to compare to.
- Comparator: Select how you are comparing the level or stat. Your options are
- Equal to: Check if the value is equal to your selection.
- Greater than or Equal to: Check if the value is equal to or higher than your selection.
- Less than or Equal to: Check if the value is equal to or lower than your selection.
- Greater than: Checks if the value is greater than your selection.
- Less than: Checks if the value is less than your selection.
- Does not Equal: True if the value is anything BUT your selection.
- Value: The value you are comparing against.
- Ignor equipment & ability buffs checkbox: Checking this will allow you to check against the characterâs raw values without any bonuses.
Condition: Self Switch isâŠ
Allows you to compare against the value of a self switch.
- Self Switch Dropdown: Select the self switch you wish to check.
- Is Dropdown: Select true or false for the value you wish to check.
Condition: Power level isâŠ
Checks the playerâs access level.
- Power Dropdown: Select if you want Mod and Admin or just Admin power level checked.
Condition: Time is betweenâŠ
Allows you to check against the in-game time frame. To use this properly, you will need to have configured your time ranges within the Time Editor
- Start Range Dropdown: The start of your time range.
- End Range Dropdown: The end of your range
Condition: Can Start QuestâŠ
Checks if the player can start a selected quest. To use this you will need to have at least one quest in the Quest Editor
- Quest Dropdown: Select the quest you want to check if they can start.
Condition: Quest CompletedâŠ
Checks if the player has completed the selected quest. To use this you will need to have at least one quest in the Quest Editor
- Quest Dropdown: Select the quest you want to check if they have completed.
Condition: No NPCâs on MapâŠ
Allows you to check for any or specific NPCâs on the map.
- Specify NPC Checkbox: If selected allows you to select a specific NPC to check for on the map. If unchecked, it will check for all NPCâs.
- NPC Dropdown: If you are specifying a NPC, this box will be avaliable. Select the NPC you wish to check for.
Condition: Gender isâŠ
Allows you to check against the gender of the player.
- Gender Dropdown: Used to select Male or Female for the condition.
Condition: Map isâŠ
Allows you to check the condition if the player is on a specific map.
- Select Map Button: Allows you to select the map you wish to check against.
Condition: Item Equipped isâŠ
Allows you to check if a player has a given Item equipped. This does not include inventory slots.
- Item Dropdown: Select the item you want to check they have equipped.
Condition: Has X Free Inventory slotsâŠ
Checks the playerâs inventory to see if they have a desired number of inventory slots empty.
- Amount Type: Manual allows you to select a specific number. Variable will use a variable to get the number.
Condition: In Guild with at least RankâŠ
Checks against the rank a player has within their guild.
- Rank Dropdown: Select the lowest rank you wish to check against.
Condition: Map Zone Type isâŠ
Checks the zone type of the map.
- Zone Type Dropdown: Select the type of zone you wish to check for.
Condition: Check Equipped SlotâŠ
Checks if a given equipment slot has any equipment in it.
- Slot Dropdown: Select the equipment slot you wish to see if it has equpment in it.
Exit Event Process
This command when reached will immediatly exit the event logic, keeping anything else below from running.
Label and Go To Label
Label command allows you to set a label in your event commands and loop it back around to the label
- Label Dropdown: Allows you to name the label.
Labels are case sensitive and must be unique within the event. When the event logic hits a label, nothing happens immediately. Once it hits the Go To command, it jumps straight to the label listed and continues back down.
Example:
You can see that the label is created at the top. Goes down. If you get to the âGo To Labelâ command by answering No twice, youâll go right back to the top. Noe that the âShow Textâ on the second no will never execute in this current setup.
Start Common Event
Allows you to trigger a common event.
- Common Event Dropdown: Select the common event you wish to trigger.
Player Control
The following commands allow you to manipulate various aspects of the player character.
Restore HP
Allows you to add to the health (HP) of a player character. Negative numbers will subtract from the HP Value.
- Set Health: Enter the numerical value you wish to increase or decrease the health vital.
Restore MP
Allows you to add to the Mana (MP) of a player character. Negative numbers will subtract from the MP value.
- Set Mana: Enter the numerical value you wish to increase or decrese the mana vital.
Level Up Player
Increases the player level by 1.
Give Experience
Allows you to give experience to the player character.
Amount Type: Select whether the type of experience is to be entered manually or from a variable.
Manual Experience
- Give Experience: Enter the value of experience you wish to give.
Variable Experience
- Variable Type Radio: Select whether you are using a Player, Guild, or Global Variable. Must be Integer type.
- Variable Dropdown Box: Select the variable you wish to use to give experience.
Note: You can give negative experience via a variable type.
Change Level
Allows you to specifically set the level of the player character.
- Set Level: Set the specific level you wish to have the player character made into.
Change Spells
Allows you to add or remove spells from a player characterâs spellbook.
- Action: Select whether you add or remove a spell.
- Spell: Select the spell you wish to add or remove.
- Remove Bound Spell Checkbox: Allows you to remove a spell that has been declared as âboundâ.
Change Items
Allows you to Give or take items from the playerâs inventory.
- Action: Select whether you are to Take or Give an item.
- Item: The item you are giving or taking.
- Method: If giving an item, select the method to handle it.
- Normal: Will give the item if there is room to do so. Fails if the player does not have room in inventory.
- Allow Overflow: Will give the item even if the user does not have room in their inventory.
- Up to Amount: Will give the item to the player only if they have room in their inventory until the quantity selected is reached, or their inventory is full.
- Amount Type: Select method for deciding the amount you are giving. Manual you declare a given quantity, Variable you select the variable to use. Variable must be an integer to work.
- Amount: When manual amount type is selected, you will select the quantity you wish to give.
Change Sprite
Allows you to change the sprite of the playerâs character. Sprites are found in your resources\entities
folder and should be .png format.
- Sprite: Select the sprite you wish to change them to.
- Preview Box: Allows you to see a preview of the sprite you have selected.
Change Player Color
Allows you to change the color of the player sprite.
- Red: Setâs the Value of the red color channel. Range from 0-255.
- Blue: Setâs the Value of the blue color channel. Range from 0-255.
- Green: Setâs the Value of the green color channel. Range from 0-255.
- Alpha: Setâs the Value of the alpha transparancy color channel. Range from 0-255.
Example:
Change Face
Allows you to change the face used for the player character. Faces are found in your resources\faces
folder and should be .png format.
- Face: Select the face you wish to use.
- Preview Box: Allows you to see a preview of the face you have selected.
Change Gender
Changes the player characterâs gender to the desired value.
- Gender: Select whether to set to Male or Female gender.
Set Access
Allows you to set a player to have elevated access. BE CAREFUL USING THIS!!!
- Access: Select the access level you wish to give to the player.
- Regular User: This is a standard access level for players.
- In-Game Moderator: This gives moderator access to the player. BE CAREFUL USING THIS!!!!
- Owner/Designer (Allows editor access): This gives full admin access to the user. BE CAREFUL USING THIS!!!!
Note: Be aware that using this event command can compramise the security of your game project and you should only give such access to those you trust. Moderator will have access to anything you have placed a check on for access level Mod. Owner/Designer however will have all the same access rights that you do. SoâŠ
BE. CAREFUL. USING. THIS. PLEASE!!!!!!!
Change Class
Allows you to change the class of a character.
- Class: Select the class you wish to change the character to.
Equip/Unequip Item
Allows you to force equip or unequip an item from a character.
- Item: Select the item you wish to equip.
- Unequip? Checkbox: If selected, will unequip the item listed above instead.
Change Name Color
Allows you to set the display color of a character name.
- Select Color: Allows you to select the color you want to change the player name to.
- Override Admin Name Color?: If selected, will override the default admin color given to admin access levels.
- Remove Name Color?: If selected, will clear any name color edits done previously.
Change Player Label
Allows you to apply a label to a character that is visible beside their name.
- Label Position: Select whether you want the label to be above or below the player name.
- Value: Enter the text, chat commands or string type variable you wish to set the label to.
- Select Color: Allows you to set the color of the label.
- Copy Player Name Color?: If selected, color will copy the player name instead of what is selected above.
Example
Change Player Name
Setâs the player name to the selected variable.
- Player Variable: Select variable to use as the new player name.
Reset Stat Point Allocations
Resets the character at current level as if they have not spent any stat points, allowing them to redistribute their points.
Movement
These commands allow the manipulation of movement of the player or event. Many of these are useful to create scripted events such as an in-game cutscene.
Warp Player
Allows you to warp the player to a specific map and location.
- Map: Select the map you wish to move to.
- X Slider: Select the âXâ value you wish to place the player on the selected map.
- Y Slider: Select the âYâ value you wish to place the player on the selected map.
- Dir: Select the facing you wish to place the player, or if they will retain the direction they had prior to the warp.
- Open Visual Interface: Openâs the map in question, allowing you to click exactly where you want the player to appear.
- Change Instance Checkbox: When checked, will allow you to set which instance category the new map will be in.
Set Move Route
Allows you to setup a move route for the event or player.
- Entity Selection Box (Green): Select whether this move action will apply to the player or to the event itself.
- Movement List (Red): Shows the list of currently applied move commands and the order they will be applied.
- Command Box (Blue): List of commands that can be applied. Each move command is applied once.
- Move Up/Down/Left/Right: Moves the entity in the desired cardinal direction.
- Move Up Left/Up Right/Down Right/Down Left: Moves the entity in the desired diagonal direction.
- Move Randomly: Moves the entity in any random directon.
- Step Forward: Moves the entity one step forward in current facing direction.
- Step Backward: Moves the entity one step backard while maintaining facing.
- Face Up/Down/Left/Right: Faces the entity in the desired direction without leaving the current tile.
- Turn 90° Clockwise: Turns the entity right/clockwise one facing.
- Turn 90° Counter Clockwise: Turns the entity left/counter clockwise one facing.
- Turn 180°: Turns the entity to face the opposite direction of itâs current facing.
- Turn Randomly: Turns the entity to a random facing.
- Wait 100ms/500ms/1000ms: Pauses the movement route for the selected amount of time.
- Ignore if Blocked: If checked, the entity will follow the movement route even if itâs path is blocked.
- Repeat Route: If checked, the route will repeat once itâs reached the end of the route.
Wait for Route Completion
Allows you to command an event to wait for a route completion declared using Set Move Route
- Entity: Select whether you are waiting for the player or the event to complete.
Hold and Release Player
Allows you to block inpute from the player or release control back to them.
Spawn NPC
Allows you to spawn an NPC in relation to the event.
- Spawn Type: Select whether the entity will spawn on or around the entity or select a specific tile you wish it to spawn.
Specific Tile
- Map: Select the map it will spawn on.
- X: Select the âXâ coordinate for the spawn.
- Y: Select the âYâ coordinate for the spawn.
- Dir: Select the directon the NPC will spawn facing.
- Open Visual Interface: Opens a window of the map, allowing you to click the spot for the spawn.
On/Around Entity
- Entity: Select if the spawn will be around the player or the event itself.
- Relative Location Grid: Use the 5x5 grid to select the position of the spawn relative to the entity, which is displayed as the âEâ at the center.
- Relative to Entity Direction: If checked, the spawn will take the direction of the entity in question with UP being the default facing. If a square is selected in the upper region and the character is facing right, then the NPC will spawn to the right as to keep the entity in front.
Despawn NPC
Will despawn NPCâs associated with the event. This will not despawn NPCâs spawned from other events or the map editor.
Hide/Show Player
Will hide the player or show the player.
Special Effects
These commands allow you to manipulate the change the presentation in some way.
Play Animation
Plays a specified animation at a location designated.
- Animation: Select the animation you wish to play. These must first be created in the Animation Editor.
- Spawn Type: Select whether this animation will be on a Specific Tile, or On/Around Entity
Specific Tile
- Map: Select the map the animation will spawn on.
- X: Select the âXâ coordinate for the spawn.
- Y: Select the âYâ coordinate for the spawn.
- Dir: Select the directon the animation will spawn facing.
- Open Visual Interface: Opens a window of the map, allowing you to click the spot for the spawn.
On/Around Entity
- Entity: Select if the spawn will be around the player or the event itself.
- Relative Location Grid: Use the 5x5 grid to select the position of the spawn relative to the entity, which is displayed as the âEâ at the center.
- Relative to Entity Direction: If checked, the spawn will take the direction of the entity in question with UP being the default facing. If a square is selected in the upper region and the character is facing right, then the animation will spawn to the right as to keep the entity in front.
- Rotate Relative to Direction: If checked, the animation will rotate relative to the entityâs facing.
Play BGM
This will play a background music track, overriding the one currently being played in the map.
- BGM: Select the track you wish to play. These must be in
resources\music
and must be in the .ogg file format.
Fadeout BGM
This will perform a slow fade on any background music currently playing.
Play Sound
Allows you to play a specific sound file.
- Sound: Select the sound you wish to play. These must be in
resources\sounds
and must be in the .wav format.
Stop Sounds
This stops all sounds currently playing.
Show Picture
This will allow you to display a picture over the client.
- Picture: Select the image you wish to display. Image files are located in
resources\images
and can be .bmp, .png, or .jpg format. - Size: Select the aspect ratio for the imate being displayed.
- Original: Shows the image as is.
- Full Screen: Stretches the image to fit the screen.
- Half Screen: Stretches the image to fit half the screen.
- Stretch to Fit: Stretches image to the nearest dimension to make the image fit the screen.
- Hide After (ms): Hides the image automatically after the selected milliseconds.
- Click to close Image: If checked, overrides the Hide After option and waits for the player to click the image to close it.
- Wait until Closed: IF checked, will pause the event process until after the image is closed.
Hide Picture
Hides a picture that has already been displayed by the event.
Quest Control
These commands allow you to control the starting, stopping, and overall flow of quests. To make use of any of these commands you will need to have configured at least one quest in the Quest Editor
Start Quest
Allows you to start or offer a quest to the player.
- Quest: Select the quest you wish to start.
- Show Offer Window: If checked, will display the offer window where the user can accept or reject a quest.
Complete Quest Task
Allows you to complete a task on event driven quests tasks.
- Quest: Select the quest you wish to complete a task for.
- Task: Select the task that is to be completed.
End Quest
Commands the event to declare a quest as ended.
- Quest: Select the quest you wish to complete.
- Do not run completion event?: If checked, will not run the completion events as setup in the quest editor.
Etc
These commands are extra commands that do not fit elsewhere.
Wait
Allows you to force the event process to wait a desired amount of time.
- Wait (ms): Enter the number of milliseconds you wish to wait.
Shop and Bank
These commands allow you to open the various shop and bank windows.
Open Bank
Allows the player to open their personal bank.
Open Shop
Allows the player to open a given shop interface. To use this you must have at least one shop configured in the Shops Editor.
- Shop: Select the shop interface you wish to display to the player.
Open Crafting Station
Allows the player to craft at a configured crafting table. To use, you will need to configure at least one crafting table in the Crafting Table Editor.
- Table: Select the crafting table you wish to display to the player.
Guilds
Allows the various guild functions for creating or disbanding and managment.
Create Guild
Allows the creation of a guild.
- Player Variable containing Guild Name: This variable will be made into the guild name.
Disband Guild
Allows the disbanding of the players guild.
Open Guild Bank
Allows the plaeyr to open the guild bank.
Set Guild Bank Slots Count
Allows to set the amount of bank slots the guild has. Requires the use of an integer variable from the variable editor.
- Variable Selection Radio: Selects the type of variable from Player, Global, or Guild.
- Variable Dropdown Box: Selects the variable to use.