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-11 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
July 11, 2009, 09:58:21 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: Betaterrors (custom race tested but not working HELP)  (Read 256 times)
Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 43



« on: June 09, 2009, 02:39:55 AM »

One of my custom races not working quite right.

Skill one is supposed to turn you invisible then visible every few seconds it turns you invisible but i dont know how to make it turn you visible.


Code
GeSHi (eventscripts):
"1"                                  
{
  "name"              "Betaterrors"          
  "author"            "Volunterrors"          
  "shortdescription"  "Second of the feared"              
  "required_level"    "100"            
  "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"        "invis|drain speed|sap ammo|slow(ultimate)"    
  "skilldescr"        "invis|drain speed|sap ammo|slow(ultimate)"    
  "skillcfg"          "player_spawn|player_victim|player_victim|player_ultimate"      
 
  "skill1_setting"        "es_xset wcs_chance 30|es_xset wcs_chance 40|es_xset wcs_chance 50|es_xset wcs_chance 60|es_xset wcs_chance 70|es_xset wcs_chance 80|es_xset wcs_chance 70|es_xset wcs_chance 100"
"skill1_cmd" "repeat create invis_loop "es est_setplayercolor event_var(userid) 255 255 255 0 1;"es_xdelayed 3 repeat create "invis2_loop es est_setplayercolor event_var(userid) 255 255 255 255 0;"es_xdelayed 3 repeat start invis_loop 3;es_xdelayed 3 repeat start invis2_loop 3"
"skill1_sfx" "0"
 
  "skill2_setting"    "es_xset wcs chance 6|es_xset wcs chance 8|es_xsetinfo wcs chance 10|es_xset wcs chance 12|es_xset wcs chance 14|es_xset wcs chance 16|es_xset wcs chance 18|es_xset wcs chance 20"
  "racealias_drnspd"  "es est_speed event_var(userid) .5;es est_speed event_var(attacker) 1.5"
  "skill2_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_drnspd"
  "skill2_sfx"        "0"          
 
   "skill3_setting"   "es_xset wcs chance 6|es_xset wcs chance 8|es_xset wcs chance 10|es_xset wcs chance 12|es_xset wcs chance 14|es_xset wcs chance 16|es_xset wcs chance 18|es_xset wcs chance 20"
   "racealias_amo"    "es est_setclipammo event_var(userid) 1 0;es est_setclipammo event_var(attacker) 1 30"
   "skill3_cmd"       "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_amo"
   "skill3_sfx"       "0"
 
   "skill4_setting"     "0"
   "skill4_cmd"         "es_xdoblock wcs/WCSultimates/wcs_AOE_slow"
    "skill4_sfx" "0"
   "ultimate_cooldown" "10"              
   "racealias_anythng" "racealias_amo;racealias_drnspd"              
}            
}


Ultimate Block

Code
GeSHi (eventscripts):
block wcs_slow
{
block wcs_AOE_slow
{
es_xset temp1 0
es est_Near temp1 #a 700 server_var(wcs_userid) "es est_speed server_var(wcs_temp1) .2;es es_delayed 6 est_Speed server_var(wcs_temp1) 1"
}
 
}
 
« Last Edit: June 13, 2009, 04:30:00 AM by Volunterrors » Logged
Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 43



« Reply #1 on: June 10, 2009, 07:16:05 PM »

Made some changes skill 3 and 4 work.

I changed the slow ability to an ultimate and set it to hit (userid) (which is me) what is the target name for enemies within the skill's radius?

Skill one still isn't working right for some reason. The way it is written it is supposed to loop "racealias_invis" and "racealias_revl" the first making it invis the second making it visible. can anyone help me out here?
 
« Last Edit: June 11, 2009, 01:56:38 AM by Volunterrors » Logged
iN0V4Ke
Level 4 Intermediate
****
Offline Offline

Portugal Portugal

Posts: 98


« Reply #2 on: June 10, 2009, 09:10:13 PM »

Hey First :
Code:
"1"                                   
 {
   "name"              "Betaterrors"         
   "author"            "Volunterrors"         
   "shortdescription"  "Second of the feared"               
   "required_level"    "100"           
   "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"        "invis|drain speed|sap ammo|slow(ultimate)"   
   "skilldescr"        "invis|drain speed|sap ammo|slow(ultimate)"   
   "skillcfg"          "player_spawn|player_victim|player_victim|player_ultimate"     
 
   "skill1_setting" "es_xsetinfo wcs_chance 30|es_xsetinfo wcs_chance 40|es_xsetinfo wcs_chance 50|es_xsetinfo wcs_chance 60|es_xsetinfo wcs_chance 70|es_xsetinfo wcs_chance 80|es_xsetinfo wcs_chance 90|es_xsetinfo wcs_chance 100"                 
   "racealias_invis"    "es xset wcs_invis 35|es xset wcs_invis 40|es xset wcs_invis 45|es xset wcs_invis 50|es xset wcs_invis 55|es xset wcs_invis 60|es xset wcs_invis 65|es xset wcs_invis 70;es es_xdelayed 3 do racealias_revl"   
   "racealias_revl"     "es xset wcs_invis 0;es es_xdelayed 3 do racealias_invis"
   "skill1_cmd" "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) do racealias_invis;es_keysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_invis);es est_setplayercolor 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)"
   "skill1_sfx" "0"
 
   "skill2_setting"    "es_xsetinfo wcs_chance 6|es_xsetinfo wcs_chance 8|es_xsetinfo wcs_chance 10|es_xsetinfo wcs_chance 12|es_xsetinfo wcs_chance 14|es_xsetinfo wcs_chance 16|es_xsetinfo wcs_chance 18|es_xsetinfo wcs_chance 20"
   "racealias_drnspd"  "es est_speed event_var(userid) .5;es est_speed event_var(attacker) 1.5;es_xtell event_var(attacker) : Drained your target's speed ."
   "skill2_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_drnspd"
   "skill2_sfx"        "0"           
 
    "skill3_setting"   "es_xsetinfo wcs_chance 6|es_xsetinfo wcs_chance 8|es_xsetinfo wcs_chance 10|es_xsetinfo wcs_chance 12|es_xsetinfo wcs_chance 14|es_xsetinfo wcs_chance 16|es_xsetinfo wcs_chance 18|es_xsetinfo wcs_chance 20"
    "racealias_amo"    "es est_setclipammo event_var(attacker) 1 0;es est_setclipammo event_var(userid) 1 100"
    "skill3_cmd"       "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_amo"
    "skill3_sfx"       "0"
 
   "skill4_setting"     "es_xset wcs_speed 2|es_xset wcs_speed 3|es_xset wcs_speed 4|es_xset;wcs_speed 5|es_xset wcs_speed 6|es_xset wcs_speed 7|es_xset wcs_speed 8|es_xset wcs_speed 9"
   "skill4_cmd"         "es_xdoblock wcs/WCSultimates/wcs_slow"
   "skill4_sfx" "0"
   "ultimate_cooldown" "20"                         
 }


IDK what that means--->     "racealias_anythng" "racealias_amo;racealias_drnspd"   
« Last Edit: June 10, 2009, 09:19:59 PM by -[DimaZ#]- » Logged

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

Brazil Brazil

Posts: 358




doug_tiozao
« Reply #3 on: June 10, 2009, 11:50:36 PM »

Skill 1 : You want blinking invisibility skill or when you get shoot you become invisible?
Logged

Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 43



« Reply #4 on: June 11, 2009, 01:55:15 AM »

Blinking invis and don't say it I know there already are blinking invis skills but i tried them and couldn't get them to work so could you plz help me with mine it is so close to working here is the latest.

Code
GeSHi (eventscripts):
"skill1_setting" "es_xset wcs_chance 30;es xset wcs_invis 140|es_xset wcs_chance 40;es xset wcs_invis 140|es_xset wcs_chance 50;es xset wcs_invis 140|es_xset wcs_chance 60;es xset wcs_invis 140|es_xset wcs_chance 70;es xset wcs_invis 140|es_xset wcs_chance 80es xset wcs_invis 140;|es_xset wcs_chance 90;es xset wcs_invis 140|es_xset wcs_chance 80;es xset wcs_invis 70"                
  "racealias_invis"    "es est_setplayercolor event_var(userid) 255 255 255 server_var(wcs_invis) 1"    
  "racealias_revl"     "es est_setplayercolor event_var(userid) 255 255 255 255 0"
  "skill1_cmd" "es_keysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_invis);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) do racealias_invis;es_xdelayed 3 racealias_revl"
  "skill1_sfx" "0"
 

This skill nearly works there are only 2 problems;
1. the amount of invis is wrong no matter what numbers I use it always looks like 100% invis what numbers are 70-80% invis?
2. it spawns invis and then in 3 seconds it turns un-invis just like its supposed to but then it never goes invis again how do I create a loop to make it go in and out of invis continuously?



« Last Edit: June 11, 2009, 06:18:07 PM by Volunterrors » Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1455



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #5 on: June 11, 2009, 08:37:18 AM »

why do you use settings in an alias that will never ever work Huh
Logged

Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 43



« Reply #6 on: June 11, 2009, 06:17:28 PM »

Changed the setting into the "setting" and guess what it doesn't work at all. Here it is maybe I did it wrong. I get a unknown command "xset" in console even though xset is working in other skills on this race. lol 


Code
GeSHi (eventscripts):
"skill1_setting" "es_xset wcs_chance 30;es xset wcs_invis 140|es_xset wcs_chance 40;es xset wcs_invis 140|es_xset wcs_chance 50;es xset wcs_invis 140|es_xset wcs_chance 60;es xset wcs_invis 140|es_xset wcs_chance 70;es xset wcs_invis 140|es_xset wcs_chance 80;es xset wcs_invis 140;|es_xset wcs_chance 90;es xset wcs_invis 140|es_xset wcs_chance 80;es xset wcs_invis 70"                
  "racealias_invis"    "es est_setplayercolor event_var(userid) 255 255 255 server_var(wcs_invis) 1"    
  "racealias_revl"     "es est_setplayercolor event_var(userid) 255 255 255 255 0"
  "skill1_cmd" "es_keysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_invis);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) do racealias_invis;es_xdelayed 3 racealias_revl"
  "skill1_sfx" "0"
« Last Edit: June 11, 2009, 06:20:25 PM by Volunterrors » Logged
WCA | AvasT [BR]
Level 7 Master
*******
Offline Offline

Brazil Brazil

Posts: 358




doug_tiozao
« Reply #7 on: June 11, 2009, 11:17:23 PM »

I can make a ability skill that turn on when a button pressed and turn off when pressed again!
and your skill code only make you become invisible, you arent removing the invisibility
Logged

Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 43



« Reply #8 on: June 12, 2009, 03:28:31 AM »

Well thats close but the point of the skill is to automatically flicker invis.
My skill does turn you visible by the way "racealias_revl" does that. It worked before I changed the invis to a setting. I get the error unknown command "xset" even though xset works on other races of mine.
So the only real problem with this skill is that and the fact that it doesn't loop. Is there no way to loop it?
Logged
Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 43



« Reply #9 on: June 12, 2009, 05:14:49 AM »

Ok I did some digging and found something that repeats commands;
repeat create <name> <"command">
repeat start <name> <interval-in-seconds> [times-to-repeat]
I created this skill using that but can't get it to work. there are supposed to be "" around the command but when I put them there I get this error "repeat: not enough arguments Syntax repeat create <name> <"command">" but if i dont use quotes either nothing happens at all or I get an error like "es: string command"

I know there is a way to write this skill this way plz write it for me if you know how or tell me what is wrong with mine.   

Code
GeSHi (eventscripts):
"skill1_setting"        "es_xset wcs_chance 30|es_xset wcs_chance 40|es_xset wcs_chance 50|es_xset wcs_chance 60|es_xset wcs_chance 70|es_xset wcs_chance 80|es_xset wcs_chance 70|es_xset wcs_chance 100"
"skill1_cmd" "repeat create invis_loop "es est_setplayercolor event_var(userid) 255 255 255 0 1;"es_xdelayed 3 repeat create "invis2_loop es est_setplayercolor event_var(userid) 255 255 255 255 0;"es_xdelayed 3 repeat start invis_loop 3;es_xdelayed 3 repeat start invis2_loop 3"
"skill1_sfx" "0"
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 #10 on: June 12, 2009, 07:46:08 AM »

Good, but why all those unneeded vars?
Quote
block wcs_slow
{
es_xset wcs_radius 500
es_xset wcs_duration 5

es est_speed event_var(userid) server_var(wcs_speed)
}
Logged

Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 43



« Reply #11 on: June 12, 2009, 06:42:42 PM »

um... its AOE slow how else would you do it? what I need is how to target people within that radius. I a skill that is pretty similar and put my stuff into it here it is. It doesn't work though. 


Code
GeSHi (eventscripts):
block wcs_slow
{
wcs_debuglog wcs_slow start
 es_xset wcs_team_target 0
 es_getplayerteam wcs_team server_var(wcs_userid)
 // check teams (T=2, CT=3)
 if (server_var(wcs_team) = 2) do
 {
   es_xset wcs_team_target 3
   es_xset wcs_team_targetn "#c!d"
 }
 if (server_var(wcs_team) = 3) do
 {
   es_xset wcs_team_target 2
   es_xset wcs_team_targetn "#t!d"
 }
 if (server_var(wcs_team_target) != "0") do
 {
   es_xset wcs_pcount 0
   es_getlivingplayercount wcs_pcount server_var(wcs_team_target)
   if (server_var(wcs_pcount) > 0) do
 
{
 
es_xset wcs_wall "1"
alias wcs_run_slow "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es_xmath wcs_z1 + 50;es_xmath wcs_z2 + 50;es est_getwallbetween wcs_wall server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2);if (server_var(wcs_wall) = 0) then wcs_run_slow2"
alias wcs_run_slow2 "es_xset wcs_immunity 0;es_keygetvalue wcs_immunity WCSuserdata server_var(wcs_targetid) ulti_immunity;if (server_var(wcs_immunity) = 0) then wcs_run_slow3;if (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_userid) #multi server_var(wcs_lng_ulti_immunity_a);if (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_targetid) #multi server_var(wcs_lng_ulti_immunity_v)"
     alias wcs_run_slow3 "es_xmath wcs_counter + 1;es est_speed server_var(wcs_targetid) server_var(wcs_speed)"
 
es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_userid) "es_exists ex userid server_var(wcs_targetid) then wcs_run_slow"
}
« Last Edit: June 12, 2009, 08:45:43 PM by Volunterrors » 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: June 12, 2009, 07:31:01 PM »

Good, but why all those unneeded vars?
Quote
block wcs_slow
{
es_xset wcs_radius 500
es_xset wcs_duration 5

es est_speed event_var(userid) server_var(wcs_speed)
}
The code you currently use will be permanent slowdown... better use:
Code:
block wcs_slow
{
  es est_speed event_var(userid) server_var(wcs_speed)
  es_delayed 5 est_speed event_var(userid) 1
}
Logged

Volunterrors
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 43



« Reply #13 on: June 12, 2009, 08:46:58 PM »

that block doesn't work right I dont want it to target me how do I get it to target the people around me in a given radius?

**edit found a command that does that but my ultimate doesn't work at all i hit the button and nothing happens I don't even get anything saying cooldown is in effect. Also every time I hit the ultimate I get the error "the specified token number 28282482" doesn't exist"   

Code
GeSHi (eventscripts):
block wcs_AOE_slow
{
es_xset temp1 0
es est_Near temp1 #a 700 server_var(wcs_userid) "es est_speed server_var(wcs_temp1) .2;es es_delayed 6 est_Speed server_var(wcs_temp1) 1"
}
 
 
 
« Last Edit: June 13, 2009, 04:31:53 AM by Volunterrors » 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 #14 on: June 13, 2009, 12:19:28 PM »

Quote
block wcs_slow
{
block wcs_AOE_slow
{
es_xset temp1 0
es est_Near temp1 #a 700 server_var(wcs_userid) "es est_speed server_var(wcs_temp1) .2;es es_delayed 6 est_Speed server_var(wcs_temp1) 1"
}
 
}
-->
Code:
block wcs_AOE_slow
{
es_xset temp1 0
es est_Near temp1 #a 700 server_var(wcs_userid) "es est_speed server_var(wcs_temp1) .2;es es_delayed 6 est_Speed server_var(wcs_temp1) 1"
}
should work now Smiley
Logged

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

Last 7 Shouts:
Today at 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 08:29:32 AM]

[Today at 04:01:13 AM]

[Today at 05:47:29 AM]

[July 10, 2009, 11:23:43 PM]

[July 10, 2009, 09:53:21 PM]

[July 10, 2009, 08:14:56 PM]

[July 10, 2009, 06:37:15 PM]

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

[July 10, 2009, 05:21:07 PM]

[July 10, 2009, 01:38:27 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.441 seconds with 24 queries.