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, 01:56:38 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: Deltaterrors (skill strength based on kills)  (Read 114 times)
Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« on: May 27, 2009, 06:05:41 PM »

**edit custom race tested and working


Code
GeSHi (eventscripts):
"3"                                  
{
  "name"              "Deltaterrors"          
  "author"            "Volunterrors"          
  "shortdescription"  "Fourth of the feared"              
  "required_level"    "0"            
  "maximum_level"     "0"            
  "allow_only"        "0"
  "teamlimit"         "0"          
  "preloadcmd"        "0"      
  "player_spawn_cmd"  "0"              
  "round_start_cmd"   "0"              
  "round_end_cmd"     "0"              
  "numberofskills"    "4"            
  "numberoflevels"    "8"            
  "skillnames"        "Favor of the gods|Incendia|Desumo|accelro"
  "skilldescr"        "gain favor from killing your enemies|Set enemies on fire|Shock your enemies to halt their movements|gain speed"
  "skillcfg"          "player_spawn|player_attacker|player_attacker|player_spawn"
 
"skill1_setting"    "es_xset temp1 0;es est_GetKills temp1 event_var(userid)"
"skill1_cmd"        "es_xmath temp1 * 8 ;es est_health event_var(userid) + server_var(temp1)"
"skill1_sfx"        "0"
 
"skill2_setting"    "es_xset temp1 0;es est_GetKills temp1 event_var(attacker)"
"racealias_burfire3" "es est_burn event_var(userid) 1"
"skill2_cmd"        "es_xmath temp1 * 4;if (server_var(temp1) > 80) then es_xset temp1 80;if (server_var(wcs_dice) <= server_var(temp1)) then racealias_burfire3"
"skill3_sfx"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(userid); if (server_var(wcs_dice) <= server_var(wcs_chance)) then es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 200 300 3 20 10 0 255 15 5 255 10"
 
"skill3_setting"    "es_xset temp1 0;es est_GetKills temp1 event_var(attacker);es_xset wcs_speed 0.9;es_xset wcs_duration 1|es_xset wcs_speed 0.85;es_xset wcs_duration 2|es_xset wcs_speed 0.75;es_xset wcs_duration 3|es_xset wcs_speed 0.7;es_xset wcs_duration 4|es_xset wcs_speed 0.65;es_xset wcs_duration 5|es_xset wcs_speed 0.6;es_xset wcs_duration 6|es_xset wcs_speed 0.55;es_xset wcs_duration 7|es_xset wcs_speed 0.5;es_xset wcs_duration 8"    
 
"racealias_slow"    "es est_speed event_var(userid) server_var(wcs_speed);es_delayed server_var(wcs_duration) wcs_removefx speed event_var(userid);wcs_getlanguage wcs_lng wcs_lng_r_slowdown"                                                
"skill3_cmd"       "es_xmath temp1 * 4;if (server_var(temp1) > 80) then es_xset temp1 80;if (server_var(wcs_dice) <= server_var(temp1)) then racealias_slow"
"skill3_sfx"       "0"
 
"skill4_setting"    "es_xset temp1 0;es est_GetKills temp1 event_var(userid)"
"skill4_cmd"        "es_xmath temp1 * .09 ;es est_speed event_var(userid) server_var(temp1)"
"skill4_sfx"        "0"
 
"ultimate_cooldown" "0"
"racealias_anythng" "racealias_burfire3;racealias_slow"  
}
 
« Last Edit: June 09, 2009, 03:38:07 PM by Volunterrors » Logged
Haakon
Level 2 Apprentice
**
Offline Offline

Norway

Posts: 52




Bloodsaque

myServer 89.145.71.92:27015
(Warning: click connects through Steam)
« Reply #1 on: May 27, 2009, 09:08:38 PM »

is this a cp ?
Logged

Check out my Server -

89.145.71.92:27015
Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #2 on: May 27, 2009, 10:23:34 PM »

Well first and fourth skill are custom.
 the cmd and sfx for second and third skills are c/p but their settings are custom (although not working) 
Logged
Narb
Level 6 Experienced
******
Offline Offline

Finland

Posts: 162


Pokemon!



tuss3d2
« Reply #3 on: May 28, 2009, 11:17:12 AM »

Looked the code for a few sec, not gona read it whole, but 1 thing:
it is event_var(userid) in player_attacker
not event_var(victim)!
Logged

What you should do list:
1. Read this.
2. After you readed, do 3
3. Go here: http://warcraft-source.com/board/index.php/topic,7317.0.html
4. VOTE FOR IT
Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #4 on: May 28, 2009, 03:58:25 PM »

Updated fixed that problem and a few other things but it still doesn't work. 
getting this error in console:

es_xif: Format is:
  es_xif (<foo> equalto <bar>) then <any typical script line>
3 Your line was: ( 89 <= ( temp1 ) then racealias_slow

this is the line it's referring to:

Code
GeSHi (eventscripts):
es es_xif (server_var(wcs_dice) <= (server_var(wcs_chance)) then racealias_slow

What is the error there and the second skill's command is the same as that but no error is appearing for it.
« Last Edit: May 28, 2009, 04:33:17 PM by Volunterrors » Logged
Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 44



« Reply #5 on: June 09, 2009, 03:36:35 PM »

Updated every skill works now. I cannot confirm if slow works or not the enemy is definitely slowed down though burn has a tendency to do that too. the new working code is at the top if your interested.     
 
Logged
Pages: [1]   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 01:23:27 AM]

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

[July 11, 2009, 11:12:14 PM]

[July 11, 2009, 10:51:38 PM]

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

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

[July 11, 2009, 09:25:35 PM]

[July 11, 2009, 09:18:30 PM]

by M.R.
[July 11, 2009, 05:16:58 PM]

[July 11, 2009, 05:05:18 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.321 seconds with 26 queries.