Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-11-23 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: [race] Create your own race !  (Read 7020 times)

kryptonite

  • <WCS coder>
  • Administrator
  • Level 7 Expert
  • Posts: 1110
[race] Create your own race !
« on: September 29, 2006, 07:26:47 AM »
This will be an how-to create your own race, or modify an existing one.

First, if you have already a custom race (from previous versions like v2.0.5) read this:

The old race format, this example is for undead, looked like this:
Really big, alot of code, bad for multi-language support, unflexible....
Code: [Select]
"1"
       {
       "name" "Undead Scourge"
       "requiredlevel" "0"
       "preloadcmd" "es_setinfo wc_undeadscourge_rand 0;es_setinfo wc_x 0;es_setinfo wc_y 0;es_setinfo wc_z 0;echo Loaded Race: Undead Scourge."
       "roundstartcmd" "es_setinfo wc_undeadscourge_rand 0"
       "roundendcmd" ""
       "skill1cfg" "player_hurt_attacker"
       "skill1description" "Gives you a percentage of the damage you do in attack back as health."
       "skill1name" "Vampiric Aura"
       "skill1level1cmd" "es_setinfo wc_dmg 0;es_setinfo wc_dmg event_var(dmg_health);es_math wc_dmg / 8;es ma_givehealth event_var(attacker) server_var(wc_dmg);es ma_takehealth event_var(userid) server_var(wc_dmg);es_tell event_var(attacker) #green You have used Vampiric Aura on event_var(es_username).;es_tell event_var(userid) #lightgreen event_var(es_attackername) leeched some HP from you."
       "skill1level2cmd" "es_setinfo wc_dmg 0;es_setinfo wc_dmg event_var(dmg_health);es_math wc_dmg / 7;es ma_givehealth event_var(attacker) server_var(wc_dmg);es ma_takehealth event_var(userid) server_var(wc_dmg);es_tell event_var(attacker) #green You have used Vampiric Aura on event_var(es_username).;es_tell event_var(userid) #lightgreen event_var(es_attackername) leeched some HP from you."
       "skill1level3cmd" "es_setinfo wc_dmg 0;es_setinfo wc_dmg event_var(dmg_health);es_math wc_dmg / 6;es ma_givehealth event_var(attacker) server_var(wc_dmg);es ma_takehealth event_var(userid) server_var(wc_dmg);es_tell event_var(attacker) #green You have used Vampiric Aura on event_var(es_username).;es_tell event_var(userid) #lightgreen event_var(es_attackername) leeched some HP from you."
       "skill1level4cmd" "es_setinfo wc_dmg 0;es_setinfo wc_dmg event_var(dmg_health);es_math wc_dmg / 5;es ma_givehealth event_var(attacker) server_var(wc_dmg);es ma_takehealth event_var(userid) server_var(wc_dmg);es_tell event_var(attacker) #green You have used Vampiric Aura on event_var(es_username).;es_tell event_var(userid) #lightgreen event_var(es_attackername) leeched some HP from you."
       "skill1level1sfx" "es_math wc_attacker_z + 20;es_math wc_victim_z + 20;es ma_effect 1 server_var(wc_attacker_x) server_var(wc_attacker_y) server_var(wc_attacker_z) server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) lightning NULL 0 0 0.5 10 10 0 1 255 0 0 64 30"
       "skill1level2sfx" "es_math wc_attacker_z + 20;es_math wc_victim_z + 20;es ma_effect 1 server_var(wc_attacker_x) server_var(wc_attacker_y) server_var(wc_attacker_z) server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) lightning NULL 0 0 0.5 10 10 0 1 255 0 0 128 30"
       "skill1level3sfx" "es_math wc_attacker_z + 20;es_math wc_victim_z + 20;es ma_effect 1 server_var(wc_attacker_x) server_var(wc_attacker_y) server_var(wc_attacker_z) server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) lightning NULL 0 0 0.5 10 10 0 1 255 0 0 192 30"
       "skill1level4sfx" "es_math wc_attacker_z + 20;es_math wc_victim_z + 20;es ma_effect 1 server_var(wc_attacker_x) server_var(wc_attacker_y) server_var(wc_attacker_z) server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) lightning NULL 0 0 0.5 10 10 0 1 255 0 0 255 30"
       "skill2cfg" "player_hurt_attacker"
       "skill2description" "You have a chance of slapping your enemy and doing more damage the higher level you are."
       "skill2name" "Banish"
       "skill2level1cmd" "es_rand wc_undeadscourge_rand 1 8;if (server_var(wc_undeadscourge_rand) = 1) then ma_slap event_var(userid) 5;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(attacker) #green You have used Banish on event_var(es_username).;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(userid) #lightgreen You have been banished by event_var(es_attackername)."
       "skill2level2cmd" "es_rand wc_undeadscourge_rand 1 7;if (server_var(wc_undeadscourge_rand) = 1) then ma_slap event_var(userid) 10;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(attacker) #green You have used Banish on event_var(es_username).;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(userid) #lightgreen You have been banished by event_var(es_attackername)."
       "skill2level3cmd" "es_rand wc_undeadscourge_rand 1 7;if (server_var(wc_undeadscourge_rand) = 1) then ma_slap event_var(userid) 15;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(attacker) #green You have used Banish on event_var(es_username).;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(userid) #lightgreen You have been banished by event_var(es_attackername)."
       "skill2level4cmd" "es_rand wc_undeadscourge_rand 1 6;if (server_var(wc_undeadscourge_rand) = 1) then ma_slap event_var(userid) 20;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(attacker) #green You have used Banish on event_var(es_username).;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(userid) #lightgreen You have been banished by event_var(es_attackername)."
       "skill2level1sfx" "es_math wc_attacker_z + 20;es_math wc_victim_z + 20;if (server_var(wc_undeadscourge_rand) = 1) then es ma_effect 1 server_var(wc_attacker_x) server_var(wc_attacker_y) server_var(wc_attacker_z) server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) lightning NULL 0 0 0.5 10 10 0 1 0 255 255 64 30"
       "skill2level2sfx" "es_math wc_attacker_z + 20;es_math wc_victim_z + 20;if (server_var(wc_undeadscourge_rand) = 1) then es ma_effect 1 server_var(wc_attacker_x) server_var(wc_attacker_y) server_var(wc_attacker_z) server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) lightning NULL 0 0 0.5 10 10 0 1 0 255 255 128 30"
       "skill2level3sfx" "es_math wc_attacker_z + 20;es_math wc_victim_z + 20;if (server_var(wc_undeadscourge_rand) = 1) then es ma_effect 1 server_var(wc_attacker_x) server_var(wc_attacker_y) server_var(wc_attacker_z) server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) lightning NULL 0 0 0.5 10 10 0 1 0 255 255 192 30"
       "skill2level4sfx" "es_math wc_attacker_z + 20;es_math wc_victim_z + 20;if (server_var(wc_undeadscourge_rand) = 1) then es ma_effect 1 server_var(wc_attacker_x) server_var(wc_attacker_y) server_var(wc_attacker_z) server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) lightning NULL 0 0 0.5 10 10 0 1 0 255 255 255 30"
       "skill3cfg" "player_spawn"
       "skill3description" "You reduce your personal gravity, more levels means less gravity."
       "skill3name" "Levitation"
       "skill3level1cmd" "es ma_gravity event_var(userid) 85;es_keysetvalue gravities event_var(userid) 85;es_tell event_var(userid) #green Levitation God: Your levitation has been set to level 1."
       "skill3level2cmd" "es ma_gravity event_var(userid) 70;es_keysetvalue gravities event_var(userid) 70;es_tell event_var(userid) #green Levitation God: Your levitation has been set to level 2."
       "skill3level3cmd" "es ma_gravity event_var(userid) 55;es_keysetvalue gravities event_var(userid) 55;es_tell event_var(userid) #green Levitation God: Your levitation has been set to level 3."
       "skill3level4cmd" "es ma_gravity event_var(userid) 40;es_keysetvalue gravities event_var(userid) 40;es_tell event_var(userid) #green Levitation God: Your levitation has been set to level 4."
       "skill3level1sfx" "es_math wc_player_z + 20;es ma_effect 10 A 0 server_var(wc_player_x) server_var(wc_player_y) server_var(wc_player_z) 20 100 lightning NULL 0 10 1 15 10 1 0 0 255 255 0 0"
       "skill3level2sfx" "es_math wc_player_z + 20;es ma_effect 10 A 0 server_var(wc_player_x) server_var(wc_player_y) server_var(wc_player_z) 20 100 lightning NULL 0 10 1 15 10 1 0 0 255 255 0 0"
       "skill3level3sfx" "es_math wc_player_z + 20;es ma_effect 10 A 0 server_var(wc_player_x) server_var(wc_player_y) server_var(wc_player_z) 20 100 lightning NULL 0 10 1 15 10 1 0 0 255 255 0 0"
       "skill3level4sfx" "es_math wc_player_z + 20;es ma_effect 10 A 0 server_var(wc_player_x) server_var(wc_player_y) server_var(wc_player_z) 20 100 lightning NULL 0 10 1 15 10 1 0 0 255 255 0 0"
       "ultimatecfg" "player_hurt_attacker"
       "ultimatedescription" "You have a chance to burn your victims for big damage."
       "ultimatename" "Satans Wrath"
       "ultimatelevel1cmd" "es_rand wc_undeadscourge_rand 1 7;if (server_var(wc_undeadscourge_rand) = 1) then es ma_takehealth event_var(userid) 10;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(attacker) #green Satan's Wrath strikes event_var(es_username).;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(userid) #lightgreen event_var(es_attackername) strikes you with Satan's Wrath."
       "ultimatelevel2cmd" "es_rand wc_undeadscourge_rand 1 8;if (server_var(wc_undeadscourge_rand) = 1) then es ma_takehealth event_var(userid) 20;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(attacker) #green Satan's Wrath strikes event_var(es_username).;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(userid) #lightgreen event_var(es_attackername) strikes you with Satan's Wrath."
       "ultimatelevel3cmd" "es_rand wc_undeadscourge_rand 1 9;if (server_var(wc_undeadscourge_rand) = 1) then es ma_takehealth event_var(userid) 30;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(attacker) #green Satan's Wrath strikes event_var(es_username).;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(userid) #lightgreen event_var(es_attackername) strikes you with Satan's Wrath."
       "ultimatelevel4cmd" "es_rand wc_undeadscourge_rand 1 10;if (server_var(wc_undeadscourge_rand) = 1) then es ma_takehealth event_var(userid) 40;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(attacker) #green Satan's Wrath strikes event_var(es_username).;if (server_var(wc_undeadscourge_rand) = 1) then es_tell event_var(userid) #lightgreen event_var(es_attackername) strikes you with Satan's Wrath."
       "ultimatelevel1sfx" "if (server_var(wc_undeadscourge_rand) = 1) then es ma_effect 19 A 0 server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) fire1 2 255"
       "ultimatelevel2sfx" "if (server_var(wc_undeadscourge_rand) = 1) then es ma_effect 19 A 0 server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) fire1 2 255"
       "ultimatelevel3sfx" "if (server_var(wc_undeadscourge_rand) = 1) then es ma_effect 19 A 0 server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) fire1 2 255"
       "ultimatelevel4sfx" "if (server_var(wc_undeadscourge_rand) = 1) then es ma_effect 19 A 0 server_var(wc_victim_x) server_var(wc_victim_y) server_var(wc_victim_z) fire1 2 255"
       }


The new format will be:
Code: [Select]
"1"
{
"name" "Undead Scourge"
"preloadcmd" "es_xsetinfo wcs_rand 0;es_xsetinfo wcs_x1 0;es_xsetinfo wcs_y1 0;es_xsetinfo wcs_z1 0;es_xsetinfo wcs_x2 0;es_xsetinfo wcs_y2 0;es_xsetinfo wcs_z2 0;echo Loaded Race: Undead Scourge."
"numberofskills" "4"
"numberoflevels" "4"
"skillnames" "Vampiric Aura|Banish|Levitation|Satans Wrath"
"skilldescr" "Gives you a percentage of the damage you do in attack back as health.|You have a chance of slapping your enemy and doing more damage the higher level you are.|You reduce your personal gravity, more levels means less gravity.|You have a chance to burn your victims for big damage."
"skillcfg" "player_attacker|player_attacker|player_spawn|player_attacker"

"skill1_setting" "es_xsetinfo wcs_divider 8;es_xsetinfo wcs_alpha 50|es_xsetinfo wcs_divider 7;es_xsetinfo wcs_alpha 90|es_xsetinfo wcs_divider 6;es_xsetinfo wcs_alpha 140|es_xsetinfo wcs_divider 5;es_xsetinfo wcs_alpha 200"
"skill1_cmd" "es_xsetinfo wcs_dmg 0;es_setinfo wcs_dmg event_var(dmg_health);es_math wcs_dmg / server_var(wcs_divider);es_xsetinfo wcs_health 0;es est_GetHealth wcs_health event_var(attacker);es_math wcs_health + server_var(wcs_dmg);es est_SetHealth event_var(attacker) server_var(wcs_dmg);es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_dmg);es_tell event_var(attacker) You have used Vampiric Aura on event_var(es_username).;es_tell event_var(userid) event_var(es_attackername) leeched some HP from you."
"skill1_sfx" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_xmath wcs_z1 + 20;es_xmath wcs_z2 + 20;es est_Effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 0.5 40 40 255 0 0 server_var(wcs_alpha)"

"skill2_setting" "es_xrand wcs_rand 1 9;es_xsetinfo wcs_damage 5;es_xsetinfo wcs_alpha 50|es_xrand wcs_rand 1 8;es_xsetinfo wcs_damage 9;es_xsetinfo wcs_alpha 90|es_xrand wcs_rand 1 7;es_xsetinfo wcs_damage 13;es_xsetinfo wcs_alpha 140|es_xrand wcs_rand 1 6;es_xsetinfo wcs_damage 17;es_xsetinfo wcs_alpha 200"
"skill2_cmd" "if (server_var(wcs_rand) = 1) then es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_damage);if (server_var(wcs_rand) = 1) then es_tell event_var(attacker) You have used Banish on event_var(es_username) with server_var(wcs_damage) damage.;if (server_var(wcs_rand) = 1) then es_tell event_var(userid) You have been banished by event_var(es_attackername)."
"skill2_sfx" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_xmath wcs_z1 + 20;es_xmath wcs_z2 + 20;if (server_var(wcs_rand) = 1) then es est_Effect 3 #a 0 sprites/crystal_beam1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 0.5 40 40 255 255 100 server_var(wcs_alpha)"

"skill3_setting" "es_xsetinfo wcs_gravity 0.9|es_xsetinfo wcs_gravity 0.8|es_xsetinfo wcs_gravity 0.7|es_xsetinfo wcs_gravity 0.6"
"skill3_cmd" "es_delayed 2 est_SetGravity event_var(userid) server_var(wcs_gravity);es_keysetvalue wcs_gravity event_var(userid) server_var(wcs_gravity);es_tell event_var(userid) Your levitation has been set."
"skill3_sfx" "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 20;es est_Effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 50 2 60 100 0.8 0 20 100 255 1"

"skill4_setting" "es_xrand wcs_rand 1 7;es_xsetinfo wcs_magnitude 12;es_xsetinfo wcs_radius 100|es_xrand wcs_rand 1 8;es_xsetinfo wcs_magnitude 15;es_xsetinfo wcs_radius 100|es_xrand wcs_rand 1 9;es_xsetinfo wcs_magnitude 18;es_xsetinfo wcs_radius 100|es_xrand wcs_rand 1 10;es_xsetinfo wcs_magnitude 21;es_xsetinfo wcs_radius 100"
"skill4_cmd" "if (server_var(wcs_rand) = 1) then es wcs_explode event_var(attacker) event_var(userid) server_var(wcs_magnitude) server_var(wcs_radius);if (server_var(wcs_rand) = 1) then es_tell event_var(attacker) Satan's Wrath strikes event_var(es_username).;if (server_var(wcs_rand) = 1) then es_tell event_var(userid) event_var(es_attackername) strikes you with Satan's Wrath."
"skill4_sfx" "if (server_var(wcs_rand) = 1) then es est_effect 4 #a 0 sprites/steam1.vmt event_var(userid) 0.8 10 5 1 255 100 100 255"
}


You see, its alot more flexible and smaller, compare ~10000 bytes vs ~4400 bytes of code :) (and this races do the same !)

New features compared with the v2.0.x format

    * removed useless roundstart/end command
    * selectable
number of skills and levels ! (this can be used as a level cap)
* skill names and description in one line ! Its really better if you wanna make a local language version of a race
* skill configs in one line, new is player_death (f.ex. suicide bomber or respawn skills)
* skill settings (variables how strong the effect is) in one line !
* only ONE command line is required ! No more copy&paste 4 times the same code
* also, only one effects code line, all parameters can be set in skill_setting
* UNLIMITED skills support ! But ok....dont use more than 8 skills, because of the selection menu is no multipage yet.....
* UNLIMITED levels support ! But.....you cannot use more than 1024 characters in a line....this is the limitation from Eventscripts. A good thing: 4 level for this Undead race need only 230 characters (means that you can make Undead with 16 levels :shock:)[/list]

Code: [Select]
// "number" // unique ID !!
// {
// "name" "race name" // The name of the race, keep it short
// "preloadcmd" "code" // The commands executed on start, eg. used to create variables
// "numberofskills" "number" // How many skills does this race have ?
// "numberoflevels" "number" // Until which level can players go ?
// "skillnames" "name1|name2|..." // the name of the skills, divided by |
// "skilldescr" "text1|text2|..." // description of the skills, divided by |
// "skillcfg" "cfg1|cfg2|..." // The config it checks on, divided by |, valid are: player_death, player_attacker, player_victim, player_spawn, player_say
// "skill1_setting" "set1|set2|..." // Setting for each skill, used for set variables/skill strength
// "skill1_cmd" "code" // Code to execute for skill 1
// "skill1_sfx" "code" // Effects code to execute for skill 1
// "skill2_setting" "set1|set2|..." // Setting for each skill, used for set variables/skill strength
// "skill2_cmd" "code" // Code to execute for skill 2
// "skill2_sfx" "code" // Effects code to execute for skill 2
// "skill3_setting" "set1|set2|..." // Setting for each skill, used for set variables/skill strength
// "skill3_cmd" "code" // Code to execute for skill 3
// "skill3_sfx" "code" // Effects code to execute for skill 3
// "skill4_setting" "set1|set2|..." // Setting for each skill, used for set variables/skill strength
// "skill4_cmd" "code" // Code to execute for skill 4
// "skill4_sfx" "code" // Effects to execute for skill 4
// "ultimate_cooldown" "time" // Cooldow time for the LAST skill (if setting is player_ultimate) should be > 0 !
// }




This post will be continiued with more info about how to make a race...
(click to show/hide)

Eldritch

  • Level 0 Beginner
  • Posts: 8
[race] Create your own race !
« Reply #1 on: January 09, 2007, 10:51:55 PM »
Indeed.  I'm trying to learn Eventscript right now, but think that this template helps to outline certain things.

Thanks!  Great work on the mod.

Eld

Edit: a bit of research answered the question I posted initially and then the question I posted in the edit...I guess the only thing left to do is say thanks for the hard work!

En.Voke

  • Level 0 Beginner
  • Posts: 8
[race] Create your own race !
« Reply #2 on: January 20, 2007, 04:08:44 PM »
First off, I just wanna say that I was a lurker here, but decided to join the community after seeing all the hard work that you guys put into this mod.

Secondly, First post :3


And finally, I love the mini-tut that you made here. Its really helpful in kicking off the race creation move, but I have a question; Is there a compiled list of the wc3s scripting commands? I was looking through some of the ones people made and seemed kind of confused at all of the varied tools.....

Are there any suggestions on what I should look into to get myself into the whole Race coding field?

kryptonite

  • <WCS coder>
  • Administrator
  • Level 7 Expert
  • Posts: 1110
[race] Create your own race !
« Reply #3 on: January 20, 2007, 04:55:43 PM »
hi, and welcome ;)

Here's a list of all ES and EST commands: (based on v1.3 and 0.417a)
Code: [Select]
es
es__clientcmdproxy
es__cmdproxy
es__createentity
es__disable
es__dispatcheffect
es__doblock
es__endblock
es__entblock
es__entsetname
es__eventpop
es__findoffset
es__fire
es__foreachkey
es__foreachval
es__give
es__nextip
es__remove
es__setang
es__setpos
es__startblock
es__unload
es_botsetvalue
es_centermsg
es_cexec
es_cexec_all
es_changeteam
es_copy
es_createbot
es_createentitylist
es_createplayerlist
es_createscriptlist
es_createvectorfrompoints
es_createvectorstring
es_dbgmsg
es_delayed
es_disable
es_doblock
es_dumpentities
es_dumpserverclasses
es_dumpstringtables
es_dumpusermessages
es_emitsound
es_enable
es_entsetname
es_exists
es_fadevolume
es_fire
es_flags
es_forcevalue
es_foreachkey
es_foreachval
es_format
es_getargc
es_getargs
es_getargv
es_getclientvar
es_getcmduserid
es_getentityindex
es_getgame
es_getindexprop
es_getlivingplayercount
es_getmoney
es_getplayercount
es_getplayerhandle
es_getplayerlocation
es_getplayermovement
es_getplayername
es_getplayerprop
es_getplayersteamid
es_getplayerteam
es_gettime
es_gettimestring
es_getuserid
es_give
es_isbot
es_keycreate
es_keydelete
es_keygetvalue
es_keygroupcreate
es_keygroupdelete
es_keygroupfilter
es_keygrouplist
es_keygroupload
es_keygrouprename
es_keygroupsave
es_keylist
es_keyrename
es_keysetvalue
es_lightstyle
es_load
es_loadevents
es_log
es_logq
es_makepublic
es_math
es_mathparse
es_menu
es_menu
es_mexec
es_msg
es_precachemodel
es_rand
es_regclientcmd
es_regcmd
es_regex
es_regsaycmd
es_reload
es_remove
es_scriptpacklist
es_setang
es_setindexprop
es_setinfo
es_setplayerprop
es_setpos
es_setview
es_sexec
es_sexec_all
es_soon
es_splitvectorstring
es_stopsound
es_strcmp
es_string
es_stringtable
es_strlen
es_tell
es_token
es_toptext
es_trick
es_unload
es_usermsg
es_x_disable
es_x_findoffset
es_x_foreachkey
es_x_foreachval
es_x_unload
es_xbotsetvalue
es_xcentermsg
es_xcexec
es_xcexec_all
es_xchangeteam
es_xcopy
es_xcreatebot
es_xcreateentitylist
es_xcreateplayerlist
es_xcreatescriptlist
es_xcreatevectorfrompoints
es_xcreatevectorstring
es_xdbgmsg
es_xdelayed
es_xdisable
es_xdoblock
es_xdumpentities
es_xdumpserverclasses
es_xelse
es_xemitsound
es_xenable
es_xentsetname
es_xexists
es_xfadevolume
es_xfire
es_xflags
es_xforcevalue
es_xforeachkey
es_xforeachval
es_xformat
es_xgetargc
es_xgetargs
es_xgetargv
es_xgetclientvar
es_xgetcmduserid
es_xgetentityindex
es_xgetgame
es_xgetindexprop
es_xgetlivingplayercount
es_xgetmoney
es_xgetplayercount
es_xgetplayerhandle
es_xgetplayerlocation
es_xgetplayermovement
es_xgetplayername
es_xgetplayerprop
es_xgetplayersteamid
es_xgetplayerteam
es_xgettime
es_xgettimestring
es_xgetuserid
es_xgive
es_xif
es_xisbot
es_xkeycreate
es_xkeydelete
es_xkeygetvalue
es_xkeygroupcreate
es_xkeygroupdelete
es_xkeygroupfilter
es_xkeygroupload
es_xkeygrouprename
es_xkeygroupsave
es_xkeylist
es_xkeyrename
es_xkeysetvalue
es_xlightstyle
es_xload
es_xloadevents
es_xlog
es_xlogq
es_xmakepublic
es_xmath
es_xmathparse
es_xmenu
es_xmexec
es_xmsg
es_xnq
es_xprecachemodel
es_xrand
es_xregclientcmd
es_xregcmd
es_xregex
es_xregsaycmd
es_xreload
es_xremove
es_xscriptpacklist
es_xsetang
es_xsetindexprop
es_xsetinfo
es_xsetplayerprop
es_xsetpos
es_xsetview
es_xsexec
es_xsexec_all
es_xsoon
es_xsplitvectorstring
es_xstopsound
es_xstrcmp
es_xstring
es_xstringtable
es_xstrlen
es_xtell
es_xtoken
es_xtoptext
es_xtrick
es_xunload
es_xusermsg
esnq
est_AddDownload
est_AddFakeClient
est_allowadvanceddrop
est_AntiBufferOverun
est_Armor
est_Armoradd
est_BlackHole
est_blackhole_eats
est_blackhole_gravity
est_blackhole_size
est_Burn
est_Cash
est_CashAdd
est_CExec
est_classlist
est_CloseFile
est_conprint
est_CountEnts
est_CountLines
est_Credits
est_csay
est_CvarAddFlag
est_CvarDelFlag
est_damage
est_dead_chat
est_Deafen
est_DeathAdd
est_Deaths
est_DeathSet
est_debug
est_DeleteHookedServerCMD
est_DeleteLine
est_DeleteRagDolls
est_DropWeapon
est_Drug
est_Drunk
est_Effect
est_enable_gravity_reseting
est_enable_PerUserKeyHook
est_enable_weapon_mods
est_enable_weapon_restrictions
est_entPhysPush
est_entPushTo
est_EntSpamName
est_entTeleport
est_Extinguish
est_Fade
est_for
est_force_cmd
est_force_rate
est_force_update
est_Freeze
est_GameStarted
est_GetAmmo
est_GetAngleToPoint
est_GetArmor
est_GetChat
est_GetClipAmmo
est_GetDeaths
est_GetEntityIndex
est_GetEntName
est_GetEscort
est_GetEyeCoord
est_GetFB
est_GetGravity
est_GetGun
est_GetGunCoord
est_GetHE
est_GetHealth
est_GetIndex
est_GetIp
est_GetKills
est_GetLine
est_GetName
est_getoffset
est_getoffsets
est_getoffsetv
est_GetPlayerDistance
est_GetPrimary
est_GetSecondary
est_GetSG
est_GetSlot
est_GetSteam
est_GetTeam
est_GetUserid
est_GetViewAngle
est_GetViewCoord
est_GetViewPlayer
est_GetViewProp
est_GetWallBetween
est_GetWeaponIndex
est_Give
est_God
est_HasDefuser
est_HasHelmet
est_HasKevlar
est_Health
est_Healthadd
est_Hook_Cheatish
est_Hook_FastBuy
est_Hook_Fire
est_Hook_Kill
est_Hook_Menu
est_HookKey
est_HookServerCMD
est_hsay
est_InsertLine
est_IsAdmin
est_IsAlive
est_IsAlpha
est_IsBomber
est_IsNumeric
est_IsOnly
est_JetPack
est_KickFakeClient
est_KillAdd
est_Kills
est_KillSet
est_KnifeOnly
est_LightStyle
est_LoadWeaponMod
est_Loop
est_MakeAdmin
est_Math
est_Max_Read_Line
est_Message_Mode
est_MessageList
est_modWeapon
est_MOTD_F
est_MOTD_T
est_MOTD_W
est_msg
est_MutePlayer
est_Name
est_namedoffset
est_Near
est_NearCoord
est_NoClip
est_OpenFile
est_OpenFiles
est_PhysPush
est_Play
est_PlayEdict
est_PlayerCount
est_PlayPlayer
est_PrintOpenFile
est_PrintRestrictions
est_PrintWeaponMod
est_propcount
est_proplist
est_propshow
est_propvalue
est_PushTo
est_RandPlayer
est_refresh
est_RegClientCMD
est_RegSayHook
est_Remove
est_RemoveAdmin
est_RemoveIdle
est_RemoveWeapon
est_Rescued
est_Restrict
est_RestrictAll
est_Rocket
est_RoundDecimal
est_SetAim
est_SetAmmo
est_SetArmor
est_SetCash
est_SetClipAmmo
est_SetEntityColor
est_SetEntModel
est_SetEntName
est_SetGravity
est_SetHealth
est_SetModel
est_setoffset
est_SetPlayerColor
est_SetViewAngle
est_SetViewCoord
est_Shake
est_ShowCmdHooks
est_ShowHookedServerCMD
est_showmenu
est_ShowMenu
est_showrestrict
est_ShowSayHooks
est_Slay
est_SpamVTables
est_Spawn
est_Speed
est_StopSound
est_StripPlayer
est_Strlen
est_StrTolower
est_StrToUPPER
est_tablelist
est_Team
est_Teleport
est_TestRestriction
est_Testvars
est_TrimDecimal
est_unHookKey
est_unMutePlayer
est_UnRegClientCMD
est_UnRegSayHook
est_UnRestrict
est_UnRestrictAll
est_uptime
est_version
est_ViewCone


pretty large list  :roll:
Here are the most usefull custom wcs commands:
Code: [Select]

wcs_say - usage: wcs_say <user|team|world> <text> <userid>
wcs_givexp - usage: wcs_givexp <userid> <amount> <reason> <forced>
wcs_givelevel - usage: wcs_givelevel <userid> <amount> <reason> <forced>
wcs_givecredits - usage: wcs_givecredits <userid> <amount> <reason> <forced>
wcs_explode - usage: wcs_explode <userid> <targetid> <magnitude> <radius>
wcs_dealdamage - usage: wcs_dealdamage <userid> <targetid> <damage>
wcs_giveshopitem - usage: wcs_giveshopitem <userid> <itemid>
wcs_removefx <userid> <type> - Takes an effect from a player (type: freeze, speed, god)
wcs_giveitem <id> <item name> - Gives a custom item, checks for death and stacks grenades
wcs_regeneration <userid> <amount> <time> <maxHP> <maxHeal> <radius> - Regenerate player for the current round


I hope you enjoy the mod and maybe create a custom race ;)
(click to show/hide)

En.Voke

  • Level 0 Beginner
  • Posts: 8
[race] Create your own race !
« Reply #4 on: January 20, 2007, 11:06:10 PM »
Thanks! That actually really helped a lot, been working on studying them all day *nods*

Fast.Food

  • Level 7 Expert
  • Posts: 401
[race] Create your own race !
« Reply #5 on: January 21, 2007, 03:27:45 AM »
Awesome, finally the full list :)
Care.

Raven

  • Level 7 Expert
  • Posts: 183
[race] Create your own race !
« Reply #6 on: January 21, 2007, 06:56:38 AM »
lol cant this be all the wcs code list. I thaught its longer list  :)
A man that doesnt changes hes mod is not a man.

kryptonite

  • <WCS coder>
  • Administrator
  • Level 7 Expert
  • Posts: 1110
[race] Create your own race !
« Reply #7 on: January 21, 2007, 12:47:47 PM »
its longer....but for race coding, you should use only this....
there are more than twice of this commands for internal usage.
(click to show/hide)

Raven

  • Level 7 Expert
  • Posts: 183
[race] Create your own race !
« Reply #8 on: January 22, 2007, 12:57:31 AM »
Just as i thaught krypt :) . But u know that for advanced coding (not of races) I shall need to use the Extended list :D
A man that doesnt changes hes mod is not a man.

Angel?

  • Level 7 Expert
  • Posts: 334
[race] Create your own race !
« Reply #9 on: March 17, 2007, 11:20:16 PM »
hey how do i code my settings cuz im kind new at this


"skill2_setting" "set1|set2|..."   // Setting for each skill, used for set variables/skill strength
//      "skill2_cmd" "code"                        // Code to execute for skill 2
//      "skill2_sfx" "code"                        // Effects code to execute for skill 2
i dont no how do this shit for the game code and Effects

can someone give me all the codes and Effects
"Death is just the first step"

~AJ

Real_Wolf

  • Level 7 Expert
  • Posts: 639
[race] Create your own race !
« Reply #10 on: March 18, 2007, 02:19:09 AM »
you WRITE the codes, to do the programs you want, the sfx is just more codes, which activate on the activation of the cmd.
Infact, i think technically the sfx and the cmd have no difference.... krypt would know.

www.eventscripts.com <- go have a look there
=|[K|T]|= Real Wolf


THOR

  • Level 0 Beginner
  • Posts: 17
[race] Create your own race !
« Reply #11 on: March 26, 2007, 11:02:34 PM »
Hey guys,

I am looking to custom colour some of my races, I have this (from blacksmith)

"player_spawn_cmd" "es est_setplayercolor event_var(userid) 0 0 0 255 1"

What numbers do I change for say green, yellow and red?

Cheers.

THOR

  • Level 0 Beginner
  • Posts: 17
[race] Create your own race !
« Reply #12 on: March 27, 2007, 03:52:07 AM »
Fantastic, I will give it a look.

Cheers.

THOR

  • Level 0 Beginner
  • Posts: 17
[race] Create your own race !
« Reply #13 on: March 27, 2007, 03:55:55 AM »
LOL, actually, I tried 250 0 0 0 1, or was it 0 255 0 0 1, anyway, I was COMPLETELY invisible, like, not there!

I ran straight past some guys planted the bomb and they were like wtf? and they subsequently got owned.  Pretty hard to shoot something you cant see.

Now, just to ensure we have it clear, I am not talking flame predator silhouette here, I am talking no appearance whatsoever!

Cheers.

Real_Wolf

  • Level 7 Expert
  • Posts: 639
[race] Create your own race !
« Reply #14 on: March 27, 2007, 04:07:34 PM »
Yes, thats the alpha value. with a depth of 0, your character is see through, with a depth of 255, your character is solid looking
=|[K|T]|= Real Wolf