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]
[syntax="es"]//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!
}[/syntax]