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 2009-07-24 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
July 24, 2009, 02:41:49 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as... HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Skills Tutorial  (Read 366 times)
Zawmbee
Moderator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 451


The GUARDIAN


« on: December 21, 2008, 06:05:06 PM »

(player_death - Happens when you are killed)
Player death skills happen when you die.  However, you may set % chances that something will happen when you die, or es_rand commands which is basically like chance.  Anything will work, you just need to set it up yourself.  For making this skill, you need to have an idea first, such as respawning.  It is used a lot, however, can we make this more original you think?  Let us take into context the different uses that respawn was used as... basic respawn and respawn and teleport to the place of death.  How about this, lets make a race that respawns you and puts you close to a teamate for support.  With this, you will need to be a bit more advanced and would have to learn the basics.  Well, here is the coding for it... if you feel confused in any way, just please make a post and quote to exactly what in the script that confuses you.  Here we are.

{
//skill_cfg = player_death
//Set According to your liking...
    "skill1_setting"    "es_xset wcs_chance 10|es_xset wcs_chance 20|es_xset wcs_chance 30"
    "racealias_rl"      "es_xsetinfo wcs_player 0;es es_xif (server_var(wcs_team) = 2) then est_randplayer wcs_player #t!d;es es_xif (server_var(wcs_team) = 3) then est_randplayer wcs_player #c!d;es es_xexists wcs_exists userid server_var(wcs_player);es es_xif (server_var(wcs_exists) = 1) then racealias_relive"
    "racealias_relive"  "es est_spawn event_var(userid);es es_xdelayed .1 est_teleport event_var(userid) server_var(wcs_player)"
    "skill1_cmd"        "es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_rl"
    "skill1_sfx"        "0"
}

(player_kill - Happens when you kill someone)
Player kill skills are just the same as any other skill, just that when you kill someone something happens.  Many people like to use this so that on a kill, the person gets more xp or anything else.  Well, how is this for a more xp per kill, EARN IT!  For this skill, you have a second chance at killing your opponent by respawning them and killing them for extra xp.  Here it is, something original for you... be ready, because their aim is set right at you at respawn.

{
//skill_cfg = player_kill
//Set According to your liking...
    "skill1_setting"    "es_xset wcs_chance 10|es_xset wcs_chance 20|es_xset wcs_chance 30"
    "racealias_extra"   "es_xgetplayerlocation event_var(userid) wcs_x1 wcs_y1 wcs_z1;es est_spawn event_var(userid);es est_teleport event_var(userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)"
    "skill1_cmd"        "es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_extra"
    "skill1_sfx"        "0"
}

(player_victim - Happens when someone attacks you)
This type is used for skills such as evade, and etc.  Say when a person attacks you, something happens.  We have seen people become invisible when attacker, we have seen a person evade a shot when attacked, we have also seen the attacker shaked when they attack them, but have we seen the attacker have a small chance to become disarmed and become a headcrab with only having a knife and extra health and say, "OH LOOK AT THE CUTE LITTLE PET!"?  Here we are Cheesy

{
//skill_cfg = player_victim
//Set According to your liking...
    "skill1_setting"    "es_xset wcs_chance 10|es_xset wcs_chance 10|es_xset wcs_chance 10"
    "racealias_lol"     "es est_speed event_var(attacker) 2.0;es est_stripplayer event_var(attacker);es_xdelayed .1 est_restrictall event_var(attacker);es est_setmodel event_var(attacker) headcrab;es_xdelayed .2 est_unrestrict event_var(attacker) weapon_knife;es_xdelayed .3 est_give event_var(attacker) weapon_knife;es est_sethealth event_var(attacker) 300;es est_setplayercolor event_var(attacker) 255 255 255 0 1;es_xdelayed .1 est_setplayercolor event_var(attacker) 255 255 255 255"
    "skill1_cmd"        "es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_lol"
    "skill1_sfx"        "0"
}


(player_say - Happens when you say a certain thing)
es_xif (event_var(text) = GROWL) then est_burn #a 3.  Lol that is a fun one.  Anyways you can use player say for any command you really want to execute, such as burning people.  Blocks come in handy if you want to make a menu, but that is your choice.  I will discuss blocks on the BLOCKS tutorial.  Anyways just remeber to set it as a player_say skill.

(player_ultimate - Happens when you press the ultimate button)
You can do anything with your ultimate, such as make everyone freeze on the map and lose the ability to fire their weapons like as if time stopped.  There is a whole bunch of things you can do.  The only difference is the ultimate_cooldown line, in which it just sets how long after the first time you used it to use it again.  Set it as high or as low as you want.  Also, commands change as well in a ultimate command, such as instead of event_var(userid) it becomes server_var(wcs_userid).  Just a small change.  Everything will be explained more in the coding an ultimate tutorial comming soon.

Now you guys are all set... all of the skills I didn't list was only because after showing you these ideas, the rest you can guess easily at what to do.  You will be find and do not worry, I am here to answer questions.  Take Care and Code On!

-Zawmbee


« Last Edit: December 22, 2008, 11:44:40 PM by Zawmbee » Logged


(Anyone who C&P's my races, give credit, TY)
 
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Master
*****
Online Online

Posts: 2182



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #1 on: December 22, 2008, 10:32:07 AM »

i guess its good that your making these tutorials to help people,
but alot of things you say in your tutorial are incorrect,
also your examples are incorrect


*MODIFIED*
Appreciate the help, I fixed it all now.  Glad someone caught it for me.  I made this at 12:00pm, destined to make mistakes I guess.  Thanks a lot and I appreciate it!
-Zawmbee
« Last Edit: December 22, 2008, 11:45:42 PM by Zawmbee » Logged


WCA | Berettonawak [FR]
Le renommé méconnu...
Watchdogs
Level 7 Master
*****
Offline Offline

France France

Posts: 2442


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #2 on: December 22, 2008, 01:00:44 PM »

    "skill1_setting"    "es_xset wcs_chance 10|es_xset wcs_chance 20|es_xset wcs_chance 30"
    "racealias_rl"      "es_xset wcs_player 0;es es_xif (server_var(wcs_team) = 2) then est_randplayer wcs_player #t!d;es es_xif (server_var(wcs_team) = 3) then est_randplayer wcs_player #c!d;es es_xexists wcs_exists userid server_var(wcs_player);es es_xif (server_var(wcs_exists) = 1) then racealias_relive"
    "racealias_relive"  "es est_spawn event_var(userid);es_getplayerlocation wcs_x wcs_y wcs_z server_var(wcs_player);es_setpos event_var(userid) server_var(wcs_x) server_var(wcs_y) server_var(wcs_z)"
    "skill1_cmd"        "es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_rl"
    "skill1_sfx"        "0"

 Tongue
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
July 23, 2009, 06:54:56 PM
How can I make my own races?
July 23, 2009, 06:43:20 PM
You should make a thread... not post in a SHOUT box...
July 23, 2009, 06:06:35 PM
could you help me plz? i have a problem with my server. The restictions doesnt work and the server goes down when you play headcrab or tryceratops. The server supporter sayed the problem is the version of wcs 0.77 but the race.db has the version 0.75
July 23, 2009, 05:37:52 PM
Don't touch it stinky is uploading a virus to your computer that will take you over!!

Hey n0life i take it you getting drama?? Cheesy
July 23, 2009, 03:52:54 PM
lol nolife
July 23, 2009, 03:52:06 PM
Hello, dear community! Lovely to see you are doing fine! I truly enjoy the peace here!
July 23, 2009, 03:21:20 PM
WoW 1.12 - Click At last!! yahoo)
Recent
[July 23, 2009, 09:50:22 PM]

[July 23, 2009, 08:58:26 PM]

[July 23, 2009, 07:02:00 PM]

[July 23, 2009, 06:07:43 PM]

[July 23, 2009, 06:05:26 PM]

[July 23, 2009, 05:18:18 PM]

[July 23, 2009, 01:26:21 PM]

[July 23, 2009, 12:41:57 PM]

[July 23, 2009, 10:34:09 AM]

[July 23, 2009, 07:54:53 AM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.098 seconds with 25 queries.