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 2008-06-03 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
June 03, 2008, 02:45:16 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Current Official Servers:
#1 - 207.210.236.112:27015 Location US
#2 - 85.190.38.232:27015 Location Amsterdam
| Tick@100 | wcs 0.77 | Mani |
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: Chameleon race FINISHED, WORKING AND HERES THE CODE!  (Read 1596 times)
Kal-El
WCS Supporter
Level 7 Expert
*****
Offline Offline

Posts: 225



« on: January 30, 2007, 01:22:57 PM »

Code:
"19"
  {
    "name"              "Chameleon"
    "author"            "soundn3ko"
    "required_level"    "0"
    "allow_only"        "0"
    "preloadcmd"        ""
    "player_spawn_cmd"  "0"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "4"
    "numberoflevels"    "8"
    "skillnames"        "Spawn Powers|Attacking Powers|Victim Powers|Ultimate(s)"
    "skilldescr"        "Chance of spawning with either Hp, speed, invisability or mole|Chance of extra damage, burning the victim, freezing them, or blinding them|Chance to dodge, or slow attacker, or be turned invisable when attacked|Mimic Roots, Teleport or Chain Lightning"
    "skillcfg"          "player_spawn|player_attacker|player_victim|player_ultimate"

    "skill1_setting"    "es_xrand wcs_rand 1 15|es_xrand wcs_rand 1 13|es_xrand wcs_rand 1 10|es_xrand wcs_rand 1 9|es_xrand wcs_rand 1 8|es_xrand wcs_rand 1 7|es_xrand wcs_rand 1 6|es_xrand wcs_rand 1 5"
    "skill1_cmd"        "es es_xif (server_var(wcs_rand) = 1) then est_setplayercolor event_var(userid) 255 255 255 90 1;es es_xif (server_var(wcs_rand) = 2) then est_SetHealth event_var(userid) 150;es es_xif (server_var(wcs_rand) = 3) then est_speed event_var(userid) 1.4;es es_xif (server_var(wcs_rand) = 4) then es_xdelayed 1 wcs_mole_activate event_var(userid);es es_xif (server_var(wcs_rand) = 1) then es_xtell event_var(userid) You have spawned invisability;es es_xif (server_var(wcs_rand) = 2) then es_xtell event_var(userid) You have spawned 150 hp;es es_xif (server_var(wcs_rand) = 3) then es_xtell event_var(userid) You have spawned speed;es es_xif (server_var(wcs_rand) = 4) then es_xtell event_var(userid) You are now a mole;es es_xif (server_var(wcs_rand) = 5) then es_xtell event_var(userid) You have spawned nothing"
    "skill1_sfx"        ""

    "skill2_setting"    "es_xrand wcs_rand 1 20|es_xrand wcs_rand 1 16|es_xrand wcs_rand 1 14|es_xrand wcs_rand 1 13|es_xrand wcs_rand 1 12|es_xrand wcs_rand 1 11|es_xrand wcs_rand 1 10|es_xrand wcs_rand 1 9"
    "racealias_cm2"     "es wcs_dealdamage event_var(attacker) event_var(userid) 10;es est_csay event_var(attacker) made + 10 damage;es est_csay event_var(userid) got 10 additional damage"
    "skill2_cmd"        "es es_xif (server_var(wcs_rand) = 1) then racealias_cm2;es es_xif (server_var(wcs_rand) = 2) then est_Freeze event_var(userid) 1;es es_xif (server_var(wcs_rand) = 3) then est_burn event_var(userid) 5;es es_xif (server_var(wcs_rand) = 4) then ma_blind event_var(userid);es es_xdelayed 2.0 ma_blind event_var(userid) 0;es es_xif (server_var(wcs_rand) = 2) then es_xtell event_var(userid) You have frozen your opponent;es es_xif (server_var(wcs_rand) = 3) then es_xtell event_var(userid) You have set your opponent on fire;es es_xif (server_var(wcs_rand) = 4) then es_xtell event_var(userid) You have blinded your opponent"
    "skill2_sfx"        ""

    "skill3_setting"    "es_xrand wcs_rand 1 15|es_xrand wcs_rand 1 13|es_xrand wcs_rand 1 10|es_xrand wcs_rand 1 9|es_xrand wcs_rand 1 8|es_xrand wcs_rand 1 7|es_xrand wcs_rand 1 6|es_xrand wcs_rand 1 5"
    "racealias_cm3"     "es es_xsetinfo wcs_dmg event_var(dmg_health);es es_xif (server_var(wcs_game) != server_var(wcs_game_css)) then es_xrand wcs_dmg 1 20;es est_GetHealth wcs_health event_var(userid);es es_xmath wcs_health + server_var(wcs_dmg);es est_SetHealth event_var(userid) server_var(wcs_health);es es_xtell event_var(userid) : Evaded a shot"
"skill3_cmd"        "es es_xif (server_var(wcs_rand) = 1) then est_setplayercolor event_var(userid) 255 255 255 75 1;es_xdelayed 2 est_setplayercolor event_var(userid) 255 255 255 255 1;es es_xif (server_var(wcs_rand) = 2) then racealias_cm3;es es_xif (server_var(wcs_rand) = 3) then est_speed event_var(attacker) .75;es_xdelayed 3 wcs_removefx speed event_var(attacker);es es_xif (server_var(wcs_rand) = 1) then es_xtell event_var(userid) You are invisable for 2 seconds;es es_xif (server_var(wcs_rand) = 3) then es_xtell event_var(userid) You have slowed your attacker;es es_xif (server_var(wcs_rand) > 3) then es_xtell event_var(userid) You have spawned nothing"
    "skill3_sfx"        ""

    "skill4_setting"    "es_xrand wcs_rand 1 15;es_xsetinfo wcs_freezetime 2;es_xsetinfo wcs_range 700;es_xsetinfo wcs_dmg 32|es_xrand wcs_rand 1 13;es_xsetinfo wcs_radius 600;es_xsetinfo wcs_freezetime 2;es_xsetinfo wcs_range 700;es_xsetinfo wcs_dmg 32|es_xrand wcs_rand 1 10;;es_xsetinfo wcs_freezetime 2;es_xsetinfo wcs_range 700;es_xsetinfo wcs_dmg 32|es_xrand wcs_rand 1 9;es_xsetinfo wcs_radius 600;es_xsetinfo wcs_freezetime 2;es_xsetinfo wcs_range 700;es_xsetinfo wcs_dmg 32|es_xrand wcs_rand 1 8;es_xsetinfo wcs_radius 600;es_xsetinfo wcs_freezetime 2;es_xsetinfo wcs_range 700;es_xsetinfo wcs_dmg 32|es_xrand wcs_rand 1 7;es_xsetinfo wcs_radius 600;es_xsetinfo wcs_freezetime 2;es_xsetinfo wcs_range 700;es_xsetinfo wcs_dmg 32|es_xrand wcs_rand 1 6;es_xsetinfo wcs_radius 600;es_xsetinfo wcs_freezetime 2;es_xsetinfo wcs_range 700;es_xsetinfo wcs_dmg 32|es_xrand wcs_rand 1 5;es_xsetinfo wcs_radius 600;es_xsetinfo wcs_freezetime 2;es_xsetinfo wcs_range 700;es_xsetinfo wcs_dmg 32"
    "skill4_cmd"        "es es_xif (server_var(wcs_rand) = 1) then es_xdoblock wcs/wcs_ulti_roots;es es_xif (server_var(wcs_rand) = 2) then es_xdoblock wcs/wcs_ulti_teleport;es es_xif (server_var(wcs_rand) = 3) then es_xdoblock wcs/wcs_ulti_chain"
    "skill4_sfx"        "0"
    "ultimate_cooldown" "15"
  }
« Last Edit: April 17, 2007, 11:11:42 AM by kryptonite » Logged

<--- [Panda] : OHHHHHHHHH YEAAAAAAH!
Fast.Food
Level 7 Expert
*****
Offline Offline

Posts: 401



WWW
« Reply #1 on: January 30, 2007, 04:12:49 PM »

you can do (i don't know for sure, but it should be working, never tried tho) if ... rand = 1 then do skill 1, if rand = 2 then do skill 2, or make a
| es_xsetinfo wcs_rand 50;es_xsetinfo wcs_randX 50| and the activation you can figure out yourself i guess ^^. If i got your idea completely wrong ,i'm sorry.
Logged

Care.
Fast.Food
Level 7 Expert
*****
Offline Offline

Posts: 401



WWW
« Reply #2 on: January 30, 2007, 04:14:53 PM »

lol. es_xrand wcs_rand 2, if server_var(wcs_rand) = 1 then est_speed event_var(userid) server_var(wcs_speed); if server_var(wcs_rand) = 2 then est_setplayercolor event_var(userid) server_var(wcs_alpha, or wcs_invis)
Logged

Care.
Kal-El
WCS Supporter
Level 7 Expert
*****
Offline Offline

Posts: 225



« Reply #3 on: January 30, 2007, 11:42:47 PM »

same basis actually, im sure later down the road this could be implimented into the normal lvl 1 power is weaker than lvl 8 power. But for now its going to be set digits for the random damage or the invis (for examples)
Logged

<--- [Panda] : OHHHHHHHHH YEAAAAAAH!
Kal-El
WCS Supporter
Level 7 Expert
*****
Offline Offline

Posts: 225



« Reply #4 on: January 31, 2007, 01:02:31 AM »

omfg.....how i pulled this out of my ass amazes me.... here it is and it friggen works.... im seriously shitting my pants right now, i never expected this to work.
Logged

<--- [Panda] : OHHHHHHHHH YEAAAAAAH!
Kal-El
WCS Supporter
Level 7 Expert
*****
Offline Offline

Posts: 225



« Reply #5 on: January 31, 2007, 01:50:26 AM »

Also this is just theb asic, i now know how to code skill levels and still have it work O_o
Logged

<--- [Panda] : OHHHHHHHHH YEAAAAAAH!
Fast.Food
Level 7 Expert
*****
Offline Offline

Posts: 401



WWW
« Reply #6 on: January 31, 2007, 07:52:54 AM »

Hmm, cool , glad my idea also worked in here. Well, in the first skill you say: you spawned with, balblabal, but how can you know which ultimate you activate, AND, does the specific ultimate stay all round, or can you like use multiple ultimates per round?
Logged

Care.
Fast.Food
Level 7 Expert
*****
Offline Offline

Posts: 401



WWW
« Reply #7 on: January 31, 2007, 07:53:53 AM »

btw, fix your english in description, and race name xD (chalmeleon, = chameleon right?)
Logged

Care.
Hetal
Bug Beagle Brigade
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 365




hetrp
« Reply #8 on: January 31, 2007, 09:41:25 PM »

Great work Kal-El, however, there is one some thing on your race that needs to be change in order to make this race work.

Line #4: 1. Uneven amount of quotation marks.  

Change "author" "soundn3ko to > "author" "soundn3ko"
Logged
Kal-El
WCS Supporter
Level 7 Expert
*****
Offline Offline

Posts: 225



« Reply #9 on: February 01, 2007, 12:02:48 AM »

Um...rce works fine, been on my server for what...nearing 48 hours now. It went thru testing with 14 people using it, everything was activating perfectly with no crashes....must have just posted a messed up version of it here, sorry guys ^_^
Logged

<--- [Panda] : OHHHHHHHHH YEAAAAAAH!
D?m????
Level 4 Intermediate
****
Offline Offline

Finland

Posts: 93


WC3 Player(master)


WWW
« Reply #10 on: February 01, 2007, 01:13:56 PM »

 Nice race!
Logged

Wc3 Supporter
Kal-El
WCS Supporter
Level 7 Expert
*****
Offline Offline

Posts: 225



« Reply #11 on: February 01, 2007, 01:31:28 PM »

thanks ^_^
Logged

<--- [Panda] : OHHHHHHHHH YEAAAAAAH!
meadow
Level 1 Trained Beginner
*
Offline Offline

Posts: 20



« Reply #12 on: February 01, 2007, 02:59:46 PM »

Does it say which skills you got in the beginning of the round?
Logged
Kal-El
WCS Supporter
Level 7 Expert
*****
Offline Offline

Posts: 225



« Reply #13 on: February 01, 2007, 11:49:25 PM »

Sure does, but due to the attacker/victim being activated live, it tells you those skills if they fire off.
Logged

<--- [Panda] : OHHHHHHHHH YEAAAAAAH!
Sonny½
Level 3 Trained Apprentice
***
Offline Offline

Posts: 75



« Reply #14 on: February 04, 2007, 05:53:41 PM »

Well thats a frekin crasy race i relly like it
Logged

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

Last 7 Shouts:
Today at 02:30:34 AM
Holliday you get my PM?
Today at 12:55:44 AM
thanks dude i appreciate a lot
June 02, 2008, 05:34:50 PM
@RK1132: I just corrected your race, not a bad try. Hopefully you learn from it, as I explain why most things are incorrect.
June 02, 2008, 04:19:51 PM
but may i also use sth like
es_delayed server_var(time) if(1 == 1) do {}
June 02, 2008, 04:17:32 PM
ah well thx
June 01, 2008, 09:12:20 PM
Do es_delayed X es_xdoblock SCRIPTNAME/myblock

~J3ff
June 01, 2008, 04:39:39 PM
what the beast race
Recent
[Today at 02:25:16 AM]

[Today at 02:12:47 AM]

[Today at 02:08:09 AM]

[Today at 12:58:49 AM]

[Today at 12:57:58 AM]

[Today at 12:57:25 AM]

[Today at 12:09:56 AM]

[June 02, 2008, 11:46:54 PM]

[June 02, 2008, 09:44:51 PM]

[June 02, 2008, 09:39: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.141 seconds with 28 queries.