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-09-25 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
September 25, 2009, 11:55:48 PM *
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: First stick with ES? Ask about ANYTHING there.  (Read 1068 times)
Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« on: October 17, 2007, 11:10:41 PM »

So, you want to start coding but you are missing most important things... First, best way to learn is have a good teacher, not copy and paste races, its just pointless, in my opinion it won't help you in anything, especially in easiest things as when use event_varS and server_varS.


- before writing "est_xxxx" command, write before "es" so it looks like "es est_AnyCommand server_var(example)"
- never use quote marks ( " " ) in races or you will get owned.
- what are event_varS and server_varS?

event_var(userid) - for player_spawn - the player who spawns (owner of a race), for player_attacker - player who got attacked by you, for player_victim - YOU!, for player_say - player who says something

event_var(attacker) - for player_attacker - you, player_victim - player who attacked you

server_var(wcs_xxx) - a server "variable"

server_var(wcs_userid) - the player who hit ultimate key Smiley or used ability

What if i want to make skill with a chance? Here is it.

"skill1_setting" "es_xsetinfo wcs_chance 15|es_xsetinfo wcs_chance 20"
"skill1_cmd" "if (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_yourname"
"racealias_yourname" "your;code"

You got 20% chance to activate code in racealias_yourname on level 2 and 15% chance on level 1.

Plz ask about anything even easiest and all...
Logged


Actually I found it as best Bux ever. Everything's automated!
 
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2249



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #1 on: October 18, 2007, 01:32:57 AM »

Quote
So, you want to start coding but you are missing most important things... First, best way to learn is have a good teacher, not copy and paste races, its just pointless, in my opinion it won't help you in anything, especially in easiest things as when use event_varS and server_varS.

i think makeing copy and paste race is an exellent way to learn
verry fun too, figureing out how things work just by trying them different ways.learning what means what to where you can eventually make your own race, then posting it on the forums to find out everything you did wrong.
thats how i learned what i know.half by trying different things with already made skills and half by the critics on the forum telling you everything you did wrong.
Logged

Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #2 on: October 18, 2007, 02:36:22 PM »

And i think its not :mrgreen:

Make a copy & paste race = you will be propably not able to make custom races in the future
Logged


Actually I found it as best Bux ever. Everything's automated!
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2249



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #3 on: October 18, 2007, 03:14:54 PM »

i make custom races..
if i didnt copy and paste i wouldent have learned to make custom races
Logged

c6464
Guest
« Reply #4 on: October 18, 2007, 05:09:51 PM »

Frodo is such a noob when it comes to race coding.

Every player_ is a event. Player_attacker is a event, if you have this event, your code will execute every time you attack someone. Player_victim, is executed every time you get hit. Theres events for everything, like event_bomb_defused or something.
Logged
Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #5 on: October 18, 2007, 05:11:15 PM »

Wtf excuse me?

btw player_attacker is custom event as player_victim is  :mrgreen:
Logged


Actually I found it as best Bux ever. Everything's automated!
c6464
Guest
« Reply #6 on: October 18, 2007, 06:43:02 PM »

I know that they are costumes Smiley Kripto modified them Wink
Logged
Real_Wolf
Level 7 Expert
*****
Offline Offline

New Zealand New Zealand

Posts: 639


« Reply #7 on: October 18, 2007, 07:01:57 PM »

lol, yes, the proper event is player_hurt, which krypt split up into two so that you could have offensive and defensive skills.

As for copy and paste, nothing wrong with making them for your own, its posting them here that makes them a WOET.

c6464 is wrong, not every player_ is an event, its not actually an event, its just a cfg built by krypt to handle the events with respect to skills.

Frodo probably should have mentioned the different cfgs, and that that was what he was referring to.

Also, don't listen to Frodo about the es thing, heres the proper guide to putting an es infront of your commands:

If you have a command, such as es_give, server will run better if you use es_xgive, sticking an x in front of it. Same thing happens with the if changing to es_xif.
However, if you have variables in your command, that means anything with server_var or event_var, before the ;, then you need a es AT THE START of the colon.

For example:
es_xif (5 = 3) then est_drunk #a 5; is fine
es es_xif (server_var(wcs_five) = 3) then est_drunk #a 5; Needs that es in front
es es_xif (server_var(wcs_five) = 3) then es est_drunk #a 5; Too many es's, you don't need that second one in front of the est_drunk.

Logged

=|[K|T]|= Real Wolf

Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #8 on: October 18, 2007, 08:42:34 PM »

Why you use es es_x too?

Why not listen to me about es? I didn't say anything about "if"  :mrgreen:

and yes if you got

if (server_var(wcs_xxx) = 1) then anycmd_which_does_not_expand_variables

It will work without es in front of any command after "then"

But, i'm not sure about blocks... Wolf, what if

if (server_var(wcs_greedy) = 1) do
{
...code...
}

? Do i need to expand everything anyway? i think i do because if should expand only then not do {} cmds... but i'm not sure
Logged


Actually I found it as best Bux ever. Everything's automated!
c6464
Guest
« Reply #9 on: October 18, 2007, 09:02:10 PM »

Lol. wolf is back, and he is back..... i feel stupid  :oops:
Logged
Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #10 on: October 18, 2007, 09:26:47 PM »

Did he even leave?  :shock:
Logged


Actually I found it as best Bux ever. Everything's automated!
c6464
Guest
« Reply #11 on: October 19, 2007, 01:52:09 PM »

Real_wolf is actually my maths teacher and he is having a expanded education now...

I didnt deliver my homework so hes mad at me  :cry:
Logged
Frodo
Level 7 Expert
*****
Offline Offline

Posts: 854


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #12 on: October 19, 2007, 03:53:09 PM »

Yyyy... lol? :shock:
Logged


Actually I found it as best Bux ever. Everything's automated!
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 06:14:32 PM
I got Pink name and spammer rank on another forum Tongue
Today at 07:06:44 AM
is gameservers.com good place to host for server..i need to find one after i done with dedicated server
Today at 05:34:52 AM
yay just got desktop from mail....finaly get to be online in steam after week offf
September 24, 2009, 09:43:13 PM
haha, pink name = spammer Cheesy
September 24, 2009, 09:30:55 PM
can i have a pink name then? Cheesy
Recent
[Today at 11:14:25 PM]

[Today at 11:11:00 PM]

[Today at 11:00:25 PM]

[Today at 10:46:06 PM]

[Today at 10:44:35 PM]

[Today at 10:43:40 PM]

[Today at 10:39:31 PM]

[Today at 10:37:53 PM]

[Today at 10:25:31 PM]

[Today at 10:24:25 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.117 seconds with 26 queries.