Evie Addon Details

Watch - Add Favorite

ESS Objects - Version 0.7.0

posted on 2008-07-03 10:58:15
by Jeff91
7
w00ts
w00t!
Requires: Tags: css dods help helper hl2dm script helper TF2 tools utility

Description

ESS Objects - Written By: J3ff Hoogland
Used to make ESS a bit more like python for Classic scripters
Allows for "passing arguments" into blocks

Command Syntax:
def -block- [arg1] [arg2] ... [argX]

//An example of how to use ESS Objects
block load
{
//The first argument is the block name you want to call
//Each argument after the first is the name of the server var passed info will be set to
def SCRIPTNAME/send_health userid health
}
event player_say
{
if (event_var(text) == "my health") do
{
//To call it you then just call the block name and list the args after it
//Also note the es prefix as this does not auto-expand Vars
es SCRIPTNAME/send_health event_var(userid) event_var(health)
}
}
block send_health //Syntax: SCRIPTNAME/send_health -userid- -health-
{
es_tell server_var(userid) you have server_var(health) health remaining!
}

Version Notes For 0.7.0

Updated on: 2008-07-03 10:58:15 EST
Scripted and Syntax Checked - will play test it later this weekend.
( Previous Versions )