Denizen/0.7/Interact Scripts/Commands: Difference between revisions

From Citizens Wiki
No edit summary
Line 6: Line 6:
</div>
</div>


====Script Flow Commands====
====Script Flow====
<div style="font-family:museo-sans;">
<div style="font-family:museo-sans;">
These commands have no external affect on the world, but can control the flow of scripts within Denizen. Though not required, and with the exception of <tt>WAIT</tt>, it is generally recommended to run these as <tt>Instant Commands</tt> to ensure smooth Script feedback to players.
These commands have no external affect on the world, but can control the flow of scripts within Denizen. Though not required, and with the exception of <tt>WAIT</tt>, it is generally recommended to run these as <tt>Instant Commands</tt> to ensure smooth Script feedback to players.
Line 80: Line 80:
</div>
</div>


====Server Commands====
====Server====


{{Denizen Command Color 2|aliceblue|
{{Denizen Command Color 2|aliceblue|
Line 120: Line 120:
}}
}}


====Text Commands====
====Speech====
<div style="font-family:museo-sans;">
<div style="font-family:museo-sans;">
These commands show some text to the player interacting, and usually to bystanders around. Note that all text commands must be surrounded by quotes single ' or double ". See: [[Which_Quotes|Which Quotes?]] for more information. Text commands also have some auto-formatting, such as making sure no words will be cut off on long messages, and applying color codes. See: [[Color_Codes|Denizen Color Codes]]. Formatting for how NPCs and Players talk can be customized in the [[config.yml]].
These commands show some text to the player interacting, and usually to bystanders around. Note that all text commands must be surrounded by quotes single ' or double ". See: [[Which_Quotes|Which Quotes?]] for more information. Text commands also have some auto-formatting, such as making sure no words will be cut off on long messages, and applying color codes. See: [[Color_Codes|Denizen Color Codes]]. Formatting for how NPCs and Players talk can be customized in the [[config.yml]].
Line 208: Line 208:
</div>
</div>


====Denizen NPC Commands====
====Movement====
Denizen NPC commands are meant to help bring your Denizen to life by allowing fine-control of small movements. These are not necessarily meant for making the Denizen NPC do large/long activities, those will instead be done by the [[Denizen/Activity_Scripts/Activities|Activities]], which is just now starting to be implemented into Denizen. The next 'large' update will focus on Activities.
Denizen NPC commands are meant to help bring your Denizen to life by allowing fine-control of small movements. These are not necessarily meant for making the Denizen NPC do large/long activities, those will instead be done by the [[Denizen/Activity_Scripts/Activities|Activities]], which is just now starting to be implemented into Denizen. The next 'large' update will focus on Activities.


Line 289: Line 289:
}}
}}


====World Interaction Commands====
====World Interaction====
These commands do something physical to the world or player.
These commands do something physical to the world or player.


Line 381: Line 381:
}}
}}


====Player Interaction Commands====
====Player Interaction====
{{Denizen Command Color 2|palegreen|
{{Denizen Command Color 2|palegreen|
GIVE
GIVE

Revision as of 05:05, 21 August 2012

Interact Script Commands

Note: There are plenty more to come, be patient, more are coming! Have ideas for a good command? Let me know!

[] indicates required field, () indicates an optional field, OR indicates alternative usage.

Script Flow

These commands have no external affect on the world, but can control the flow of scripts within Denizen. Though not required, and with the exception of WAIT, it is generally recommended to run these as Instant Commands to ensure smooth Script feedback to players.

Server

The commands below require Vault and a valid permissions system. Though Vault is not required to use Denizen, the commands below DO require Vault and its dependencies to be installed. Remember: Vault is not an economy or permissions system, merely a hook to help Denizen connect to your favorite systems!

Speech

These commands show some text to the player interacting, and usually to bystanders around. Note that all text commands must be surrounded by quotes single ' or double ". See: Which Quotes? for more information. Text commands also have some auto-formatting, such as making sure no words will be cut off on long messages, and applying color codes. See: Denizen Color Codes. Formatting for how NPCs and Players talk can be customized in the config.yml.

You can use the following placeholders to fill in specific information:

  • <NPC> - The Denizens's name.
  • <PLAYER> - The interacting Player's name
  • <DISPLAYNAME> - The interacting Player's display name
  • <HEALTH> - The interacting Player's heath
  • <WORLD> - The name of the Denizen's world

If you use the NOPLAYER modifier on a text command the <PLAYER>, <DISPLAYNAME> and <HEALTH> tags are not available.

Movement

Denizen NPC commands are meant to help bring your Denizen to life by allowing fine-control of small movements. These are not necessarily meant for making the Denizen NPC do large/long activities, those will instead be done by the Activities, which is just now starting to be implemented into Denizen. The next 'large' update will focus on Activities.

World Interaction

These commands do something physical to the world or player.

Player Interaction