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-12 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
July 12, 2009, 07:46:23 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Please obey the rules, to achieve a pleasent order in our community.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: My First Tottaly Custom Race!! CHECK IT OUT!  (Read 373 times)
WCA | AvasT [BR]
Level 7 Master
*******
Offline Offline

Brazil Brazil

Posts: 358




doug_tiozao
« on: April 20, 2009, 07:25:31 PM »

Hi there everybody, this is my first race, after 1 year working on wcs, learning wcs scripting.
My first work, if you dont like it tell me, if something wrong tell me.
This is the race:
Code
GeSHi (eventscripts):
 {
   "name"              "Divine Killer"
   "author"            "[AoD]DGN"
   "shortdescription"  "First Race =D"
   "required_level"    "0"
   "maximum_level"     "0"
   "allow_only"        "0"
   "teamlimit"         "0"
   "restrict_shop"     "0"
   "preloadcmd"        "0"
   "player_spawn_cmd"  "0"
   "round_start_cmd"   "0"
   "round_end_cmd"     "0"
   "numberofskills"    "4"
   "numberoflevels"    "6"
   "skillnames"        "Divine Health|Hell Damage|Cape of Invisibility|Death Sparks"
   "skilldescr"        "Extra life|+Damage|Invisibility|50% chance to damage nearby enemies with Death Sparks"
   "skillcfg"          "player_spawn|player_attacker|player_spawn|player_ultimate"
 
   "skill1_setting"    "es_xsetinfo wcs_addhealt 50;es_xset wcs_alpha 50|es_xset wcs_addhealt 60;es_xset wcs_alpha 60|es_xset wcs_addhealt 70;es_xset wcs_alpha 70|es_xset wcs_addhealt 80;es_xset wcs_alpha 80"
   "skill1_cmd"        "es est_health event_var(userid) + server_var(wcs_addhealt);wcs_getlanguage wcs_lng wcs_lng_r_devotion;es_tell event_var(userid)#multi server_var(wcs_lng)"
   "skill1_sfx"        "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_xmath wcs_z2 + 150;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) 2 40 10 200 255 205 255"
 
   "skill2_setting"    "es_xset wcs_multiplier 1.3|es_xset wcs_multiplier 1.6|es_xset wcs_multiplier 1.9|es_xset wcs_multiplier 2.1|es_xset wcs_multiplier 2.4"
   "racealias_kd"      "es_set wcs_dmg event_var(dmg_health);es_xmath wcs_dmg float;es_math wcs_dmg * server_var(wcs_multiplier);es est_RoundDecimal wcs_dmg server_var(wcs_dmg) 0;es_wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_dmg);wcs_getlanguage wcs_lng wcs_lng_damage;esnq est_csay event_var(attacker) + server_var(wcs_dmg) server_var(wcs_lng);esnq est_csay event_var(userid) + server_var(wcs_dmg) server_var(wcs_lng);racealias_ddksfx"
   "racealias_ddksfx"  "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(attacker);es est_effect 6 #a 0 sprites/fireburst.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) 400 1 10 255 51 0 255"
   "skill2_cmd"        "if(server)var(wcs_dice)<=25 then racealias_kd"                                                                                                                                                                                                                
   "skill2_sfx"        "0"
 
   "skill3_setting"    "es_xset wcs_invis 150;es_xset wcs_alpha 50|es_xset wcs_invis 140;es_xset wcs_alpha 60|es_xset wcs_invis 130;es_xset wcs_alpha 70|es_xset wcs_invis 120;es_xset wcs_alpha 80|es_xset wcs_invis 110;es_xset wcs_alpha 90|es_xset wcs_invis 100;es_xset wcs_alpha 100|es_xset wcs_invis 90;es_xset wcs_alpha 110|es_xset wcs_invis 80;es_xset wcs_alpha 120"      
   "skill3_cmd"        "es_xcopy wcs_tmp wcs_invis;es_xmath wcs_tmp float;es_xmath wcs_tmp / -2.55;es_xmath wcs_tmp + 100;es est_rounddecimal wcs_tmp server_var(wcs_tmp) 0;es_keysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_tmp);es est_playercolor event_var(userid) 255 255 255 server_var(wcs_invis)1;wcs_getlanguage wcs_lng wcs_lng_r_invis;es_tell event_var(userid) #multi server_var(wcs_lng)"
   "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) 30 60 2 10 0 0 0 255 50 128 10"
 
   "skill4_setting"    "es_xsetinfo wcs_chance 25;es_xsetinfo wcs_radius 500|es_xsetinfo wcs_chance 30;es_xsetinfo wcs_radius 600|es_xsetinfo wcs_chance 35;es_xsetinfo wcs_radius 700|es_xsetinfo wcs_chance 40;es_xsetinfo wcs_radius 800|es_xsetinfo wcs_chance 50;es_xsetinfo wcs_radius 900"
   "skill4_cmd"        "if(server_var(wcs_dice) <= server_var(wcs_chance)) then es_xdoblock wcs/WCSultimates/spark_divine;if (server_var(wcs_dice) > server_var(wcs_chance)) then es_xtell server_var(wcs_userid) #multi #green SPARKS FAILED!!"
   "skill4_sfx"        "0"
   "ultimate_cooldown" "30"
 }

And this is the ultimate block:
Code
GeSHi (eventscripts):
block spark_divine
{
 es_fire event_var(userid) env_spark
 es_give event_var(userid) env_spark
 es_fire event_var(userid) env_spark addoutput "Magnitude 2"
 es_fire event_var(userid) env_spark addoutput "TrailLength 3"
 es_fire event_var(userid) env_spark addoutput "spawnflags 256"
 es_fire event_var(userid) env_spark StartSpark
 es_tell event_var(userid) #multi #lightgreenYou got hit by event_var(es_attackername) Divine Spark
es_tell event_var(attacker) #multi #lightgreenYou hit event_var(es_username) with the Divine Sparks
ifx true(wcsgraphicfx) do
{
es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(attacker)
es est_effect 8 #a 0 sprites/bluespark.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)
}
}
 
And dont forget to name the ultimate block spark_divine!!!
I Fixed all the errors and modified the post =D
Ultimate Tested working perfectly...
Hope you like
« Last Edit: April 24, 2009, 01:25:56 AM by Ðioguinhu :D » Logged

[Oddity]TeacherCreature
Co-Administrator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #1 on: April 20, 2009, 07:42:56 PM »

Looks good but you didnt use wcs_chance in your ultimate.
Logged

WCA | AvasT [BR]
Level 7 Master
*******
Offline Offline

Brazil Brazil

Posts: 358




doug_tiozao
« Reply #2 on: April 20, 2009, 07:54:19 PM »

You mean no wcs_chance on ultimates?
or for this is not necessary?
Logged

WCA | AvasT [BR]
Level 7 Master
*******
Offline Offline

Brazil Brazil

Posts: 358




doug_tiozao
« Reply #3 on: April 20, 2009, 08:44:23 PM »

A BIG THANKS TO ODDITY THAT HELPED ME WITH A LOT WITH WCS, HE IS MY TEACHER AHAHAHAHA!!!
Logged

Piloten
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 136




Darin880

myServer 75.102.38.8:29444
(Warning: click connects through Steam)
« Reply #4 on: April 20, 2009, 09:06:03 PM »

i would look over the coding but oddity already said it looked fine, so im going to have to agree, but being a server owner, meaning im constantly looking for more races that are interesting, this is pretty basic and common. its well put together and you actually put the time into thinking of unique names but theres already a lot of similar ideas. maybe on your next race try something out of the ordinary? other than that, it looks good and keep up the good work! Cheesy
Logged
[Oddity]TeacherCreature
Co-Administrator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #5 on: April 20, 2009, 09:10:04 PM »

I didnt test it by any means. I just looked at it for basic formatting and appearance.
I was able to help some on steam and you are welcome. It is his first race, so I think that is pretty good for a first..
Logged

Piloten
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 136




Darin880

myServer 75.102.38.8:29444
(Warning: click connects through Steam)
« Reply #6 on: April 20, 2009, 09:18:49 PM »

I didnt test it by any means. I just looked at it for basic formatting and appearance.
thats what i meant, the basic stuff and common errors.

It is his first race, so I think that is pretty good for a first..
which is why i didnt flame him and cut him down for it. i thought i was nice about encouraging him to challenge himself next time.
Logged
[Oddity]TeacherCreature
Co-Administrator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #7 on: April 20, 2009, 10:22:57 PM »

I havent tested the ultimate not sure how it will work, but if you have corrected things instead of reposting the entire race go to the first post and modify and change it up there so people dont get the wrong version.
Logged

WCA | AvasT [BR]
Level 7 Master
*******
Offline Offline

Brazil Brazil

Posts: 358




doug_tiozao
« Reply #8 on: April 20, 2009, 10:47:20 PM »

I Modified the post, tested the ultimate and its working, fixed every error of es.
Logged

Phat_Wizard
<WCS coder>
WCS ESP Dev Team
Level 6 Experienced

Offline Offline

Canada Canada

Posts: 231




Phat_Wizard
phatwizard
« Reply #9 on: April 20, 2009, 11:19:00 PM »

At a quick glance the only problem I can see is that in the ultimate block you have a few lines that have multiple commands on a single line like you would have in the race file...

ex: the code below
Code
GeSHi (eventscripts):
es_tell event_var(userid) #multi #lightgreenYou got hit by event_var(es_attackername) Divine Spark;es_tell event_var(attacker) #multi #lightgreenYou hit event_var(es_username) with the Divine Sparks
should be this (unless the above code some how works...not as used to ESS as I used to be)
Code
GeSHi (eventscripts):
es_tell event_var(userid) #multi #lightgreenYou got hit by event_var(es_attackername) Divine Spark
es_tell event_var(attacker) #multi #lightgreenYou hit event_var(es_username) with the Divine Sparks

Other then that I'd say the race looks good.  Wink
Logged

WCA | AvasT [BR]
Level 7 Master
*******
Offline Offline

Brazil Brazil

Posts: 358




doug_tiozao
« Reply #10 on: April 20, 2009, 11:21:22 PM »

;X Sorry the error, i'll pay attention next time, i didnt know that because i tought that it was 1 command, and we can do it together, but anyway...
Thanks!
Logged

WCA | AvasT [BR]
Level 7 Master
*******
Offline Offline

Brazil Brazil

Posts: 358




doug_tiozao
« Reply #11 on: April 21, 2009, 08:15:49 PM »

Im working on a second race, later it will be on the site!
Logged

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

France France

Posts: 2425


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #12 on: April 22, 2009, 12:14:59 PM »

Your ultimate cannot work the way it's done Cry

First of all a small mistake, which will just make the sfx won't work : you use es_xgetplayerlocation, which doesn't expand event_vars (like userid and attacker, in our case)... so change it to es_getplayerlocation.
Secondly, a huge mistake which will make whole skill won't work... You didn't understand how ultimates work, and not how events work either.
No event has anything to see with another event. Here you are mixing event player_ultimate, and event player_hurt... although you shouldn't.
In an ultimate, the only player you may talk about is server_var(wcs_userid), which is the player using the ultimate.
In a player_victim or player_attacker skill (which both are using event player_hurt), you may use event_var(userid) and event_var(attacker).
But in an ultimate, there is no event_var(attacker) and event_var(userid) Cry
Thirdly, another small mistake, env_spark doesn't deal damage, so if you want to deal damage within X range, use est_near.
Logged

WCA | AvasT [BR]
Level 7 Master
*******
Offline Offline

Brazil Brazil

Posts: 358




doug_tiozao
« Reply #13 on: April 23, 2009, 03:13:56 PM »

Sorry, i didn't know that, next time i'll pay attention...
Like i said im new at coding and at my first race i cant do something so custom...
Logged

[Oddity]TeacherCreature
Co-Administrator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #14 on: April 23, 2009, 03:44:06 PM »

1. Berett made good point, since your getlocation puts values in a variable but doesn't use a number it is getting the location of another variabvle it needs expanding which can be done two ways one is by removing the X in es_Xget  or by putting an ES infront of it  es es_xget. I prefer adding ES although it is the older way and the people using newer way claim it is faster, I find a few personal reasons to keep using ES.

2. He is also right about using event_var in ultimate. You can reference the player_hurt block or use est_near or some other common way and gather the other userids but you have to manual assign them to something like wcs_targetid or whatever.

« Last Edit: April 24, 2009, 03:45:36 AM by [Oddity]TeacherCreature » Logged

Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
July 11, 2009, 06:57:11 AM
is there anyplace i can get help with maps? ive made a map recently but its crashin css everytime a person trys to load it
July 10, 2009, 02:22:30 PM
go in a forum; go into a topic; down below youll find a reply button
July 10, 2009, 02:15:52 PM
can anyone help me i dont know how to post posts.
July 10, 2009, 02:15:40 PM
sup fellas
July 10, 2009, 01:39:30 PM
dashi619 read pm i send you
July 10, 2009, 12:48:28 PM
help?
July 10, 2009, 10:22:56 AM
ME Tongue
Recent
[Today at 07:06:15 AM]

[Today at 06:23:40 AM]

[Today at 06:14:56 AM]

[Today at 02:44:12 AM]

[Today at 02:36:30 AM]

[Today at 01:23:27 AM]

[July 11, 2009, 11:21:04 PM]

[July 11, 2009, 10:39:32 PM]

[July 11, 2009, 10:13:01 PM]

[July 11, 2009, 09:25:35 PM]
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.492 seconds with 26 queries.