Evie Addon Details

Watch - Add Favorite

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(es_userhealth)
}
}
block send_health //Syntax: SCRIPTNAME/send_health -userid- -health-
{
es_tell server_var(userid) you have server_var(health) health remaining!
}

Version Notes For 1.0 (Announce this update)

Updated on: 2008-11-06 18:35:20 EST by Jeff91
Added the line import es and fixed the example (had health instead of es_userhealth)
( Previous Versions )