WarCraft: Source

 

EventScriptsClassicCommands

Page history last edited by freddukes@... 1 yr ago

EventScripts Classic Commands


With this version, you can either code races in Python or Eventscripts. Although we seriously suggest python, if you feel that you're better with the old style EventScripts (ESS), then we have also made all the commands available to you in your own simple syntax :)... We have only made the commands which will help you... (e.g. We took out GetViewCoords as it's just as simple to use the EST command directly, rather than use our custom command.) Any command which is here should be used whenever possible: E.G... wcs Health ... Of course you could just use "playerset health" but we have an internal dictionary that looks after all of these commands. This means if you use our commands, it will be compatible with things like ShopMenu etc, so you can be CERTAIN our commands will be compatible with our mod.

 

If you click on the names of the commands in orange, it will take you to the python syntax... That page will also give you more information about the command, and what the arguments are... However, if you are using ESS commands, the following are the correct syntax.


 

Ammo

    wcs Ammo <userid>

 

AmmoAdd

    wcs AmmoAdd <userid> <amount to +/->

 

AreaDamage

    wcs AreaDamage <userid> <team to damage> <distance to damage> <damage amount> [attacker]

 

AreaRegen

    wcs AreaRegen <userid> <team to heal> <distance> <amount each loop> <delay each loop>

 

Armor

    wcs Armor <userid> <amount>

 

ArmorAdd

    wcs ArmorAdd <userid> <amount to +/->

 

Blind

    wcs Blind <userid> <time> [alpha]

 

BlockAbil

    wcs BlockAbil <userid> <time>

 

BlockUlti

    wcs BlockUlti <userid> <time>

 

ChangeGravity

    wcs ChangeGravity <userid> <amount to +/->

 

Clip

    wcs Clip <userid> <amount>

 

ClipAdd

    wcs ClipAdd <userid> <amount to +/->

 

Color

    wcs Color [Color] [red] [green] [blue] [alpha]

    e.g. wcs Color "red"

    e.g. wcs Color 255 0 0

    e.g. wcs Color "red" 150

    e.g. wcs Color 255 0 0 150

 

Damage

    wcs Damage <userid> <damage> [damage type] [attacker]

 

Drain

    wcs Drain <userid> <damage each loop> <delay between loops> <total time to drain>

 

Drop

    wcs Drop <userid>

 

Fade

    wcs Fade <userid> <fade-to alpha> <time to fade>

 

Freeze

    wcs Freeze <userid> <time>

 

GetCoolDown

    wcs GetCoolDown <variable> <userid> <"skill">

 

GetRaceLevel

    wcs GetRaceLevel <variable> <userid>

 

GetNextXp

    wcs GetNextXp <variable> <userid>

 

GetXp

    wcs GetXp <variable> <userid>

 

GiveLevel

    wcs GiveLevel <userid> <amount> ["reason"]

 

GiveXp

    wcs GiveXp <userid> <amount> ["reason"]

 

God

    wcs God <userid> <time>

 

Heal

    wcs Heal <userid> <amount>

 

Health

    wcs Health <userid> <amount>

 

HealthAdd

    wcs HealthAdd <userid> <amount to +/->

 

ModDict

    wcs ModDict <userid> <key> <value to +/->

 

Model

    wcs Model <userid> <model path>

 

Regen

    wcs Regen <userid> <amount to delay> <amount to add each loop>

 

ReturnDict

    wcs ReturnDict <variable> <userid> <key>

 

SetCoolDown

    wcs SetCoolDown <userid> <"skill"> <time>

 

SetGravity

    wcs SetGravity <userid> <amount>

 

Speed

    wcs Speed <userid> <amount>

 

SpeedAdd

    wcs SpeedAdd <userid> <amount to +/->

 

UpdateDict

    wcs UpdateDict <userid> <key> <key-value>

 

 


 

Race commands in EventScripts Classic (ESS):

 

Okay, So you ask how exactly do you register your skills, ultimates, weapon restrictions and other nice things ;)... Well the following are the correct syntax in EventScripts Classing coding. Note: The links are for Python pages, all the links are there for is additional information on the commands.

 

registerSkill

    wcs Race <race name> registerSkill <skill name> <maximum level> <level interval> <"description">

 

registerUltimate

    wcs Race <race name> registerUltimate <skill name> <level needed> <maximum level> <level interval> <"description">

 

registerTeam

    wcs Race <race name> registerTeam <team number/name>

 

registerWeaponRestriction

    wcs Race <race name> registerWeaponRestriction <"allow only/block only"> <"weapon1,weapon2,weapon3,weapon4,etc">

    e.g. wcs Race "Night Elf" registerWeaponRestriction "allow only" "knife,hegrenade,flashbang,smokegrenade,glock,usp"

 

registerMinLevel

    wcs Race <race name> registerMinLevel <level>

 

registerMaxLevel

    wcs Race <race name> registerMaxLevel <level>

 

registerSteamid

    wcs Race <race name> registerSteamid <"steamid1,steamid2,steamid3,etc">

    e.g. wcs Race "Night Elf" registerSteamid "STEAM_0:0:145546,STEAM_ID_LAN,BOT"

 

registerTeamLimit

    wcs Race <race name> registerTeamLimit <amount>

 


Effect commands in EventScripts Classic (ESS):

 

These effects are only here to save time, and make it easy for you to code. In most cases, you'll give a playeer ID instead of X, Y, Z as I find that most people generally use effects emitting from players... If you need to make your own, you can still use est_effect commands like normal

 

Beam1

    wcs Beam1 <start userid> <end userid> <life> <red> <green> <blue>

 

Beam2

    wcs Beam2 <start userid> <end userid> <life> <red> <green> <blue>

 

Beam3

    wcs Beam3 <start x y z> <end userid1,enduserid2,enduserid3> <life> <red> <green> <blue>

 

Beam4

    wcs Beam4 <start userid> <end userid> <life> <red> <green> <blue>

 

Follow

    wcs Follow <userid> <red> <green> <blue>

 

Misc1

    wcs Misc1 <userid> <life>

 

Misc2

    wcs Misc2 <userid> <life> <size>

 

Misc3

    wcs Misc3 <userid> <life> <size>

 

Misc4

    wcs Misc4 <userid> <life> <size>

 

Misc5

    wcs Misc5 <userid> <life> <size>

 

Misc6

    wcs Misc6 <userid> <life> <size>

 

Ring1

    wcs Ring1 <userid> <end distance> <life> <red> <green> <blue>

 

Ring2

    wcs Ring2 <userid> <size of ring> <life> <red> <green> <blue>

 

Ring3

    wcs Ring3 <userid> <end distance> <life> <red> <green> <blue>

 

Ring4

    wcs Ring4 <userid> <start distance> <end distance> <life> <size> <spread> <red> <green> <blue>

 

Smoke

    wcs Smoke <userid>

Comments (0)

You don't have permission to comment on this page.