User Tools

Site Tools


scripting:introduction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:introduction [2012/09/02 21:44] – [Script Files] mitscripting:introduction [2025/05/28 16:34] (current) – external edit 127.0.0.1
Line 20: Line 20:
 As an initial example - perhaps you want to have a special building that when built, awards your players with a special item. The simple script to do this might look something like.. As an initial example - perhaps you want to have a special building that when built, awards your players with a special item. The simple script to do this might look something like..
  
-<codedoc>+<code>
 Event( "NewBuilding", "3" Event( "NewBuilding", "3"
  
Line 26: Line 26:
   *grantitem %PLAYER% Special Item   *grantitem %PLAYER% Special Item
  
-</codedoc>+</code>
 If you've already been playing around with owner features on your world, then the *commands might already be familiar - Just about anything you can do using the commands on the server you can do through the scripting system - which leads to lots of possible clever features done in script. If you've already been playing around with owner features on your world, then the *commands might already be familiar - Just about anything you can do using the commands on the server you can do through the scripting system - which leads to lots of possible clever features done in script.
  
scripting/introduction.1346622254.txt.gz · Last modified: (external edit)