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 2010-02-02 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
February 03, 2010, 12:14:59 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
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: My race has an extra skill  (Read 59 times)
EpicDino
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 33



« on: December 22, 2009, 04:29:50 AM »

I know it's the race because i re-installed WCS and its still there.

When I play my 4 skill/eight level race it has a fifth skill

Its got Strike , Shield, Fire Explosives, Gift of the Shaman, and skill called Strike|Shield|Fire Explosives|Gift of the Shaman

When you type spendskills you see that, when you type raceinfo you see two copies of Gift of the Shaman.

The etire race is coded out of blocks (figured i'd try to do that) and everything I got the chance to test works.

Heres the racefile and blocks

Code:
    "name"              "Oni"
    "author"            "EpicDino"
    "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"    "5"
    "numberoflevels"    "8"
    "skillnames"        "Strike|Shield|Fire Explosives|Gift of the Shaman"
    "skilldescr"        "(Attack) Do More Damage|(Victim) Block Shots|(Attack) Grenades Burn|(Ultimate) Gain Health"
    "skillcfg"          "player_attacker|player_victim|player_attacker|player_ultimate"

    "skill1_setting"    "es_xset wcs_chance 9|es_xset wcs_chance 14|es_xset wcs_chance 17|es_xset wcs_chance 19|es_xset wcs_chance 21|es_xset wcs_chance 24|es_xset wcs_chance 26|es_xset wcs_chance 30"
    "skill1_cmd"        "es_xdoblock wcs/WCSultimates/oni_strike"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xset wcs_chance 5|es_xset wcs_chance 9|es_xset wcs_chance 12|es_xset wcs_chance 14|es_xset wcs_chance 17|es_xset wcs_chance 19|es_xset wcs_chance 21|es_xset wcs_chance 23"
    "skill2_cmd"        "es_xdoblock wcs/WCSultimates/oni_shield"
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xrand wcs_duration 1 1|es_xrand wcs_duration 1 2|es_xrand wcs_duration 1 3|es_xrand wcs_duration 2 4|es_xrand wcs_duration 2 5|es_xrand wcs_duration 2 6|es_xrand wcs_duration 3 7|es_xrand wcs_duration 4 8"
    "skill3_cmd"        "es_xdoblock wcs/WCSultimates/oni_firee"
    "skill3_sfx"        "0"

    "skill4_setting"    "es_xrand wcs_health 5 10|es_xrand wcs_health 5 15|es_xrand wcs_health 10 15|es_xrand wcs_health 15 20|es_xrand wcs_health 15 25|es_xrand wcs_health 15 30|es_xrand wcs_health 15 35|es_xrand wcs_health 20 40"
    "skill4_cmd"        "es_xdoblock wcs/WCSultimates/oni_ulti_gifts"
    "skill4_sfx"        "0"
    "ultimate_cooldown" "15"

BLOCK

Code:
block oni_strike
{
if (server_var(wcs_debug) = "1") then echo oni_strike start
if (server_var(wcs_dice) <= server_var(wcs_chance)) do
{
es_xrand wcs_tmp 1 30
es est_RoundDecimal wcs_tmp server_var(wcs_tmp) 0
es wcs_dealdamage event_var(userid) event_var(attacker) wcs_tmp
es_tell event_var(userid) #multi #greenStrike : event_var(es_attackername) dealt server_var(wcs_tmp) more damage to you
es_tell event_var(attacker) #multi #greenStrike : You dealt server_var(wcs_tmp) more damage to event_var(es_username)
}
if (server_var(wcs_debug) = "1") then echo oni_strike end
}

block oni_shield
{
if (server_var(wcs_debug) = "1") then echo oni_shield start
if (server_var(wcs_dice) <= server_var(wcs_chance)) do
{
est_isalive wcs_alive event_var(userid)
if (server_var(wcs_alive) = 1) do
{
es est_Health event_var(userid) + event_var(dmg_health)
es_tell event_var(userid) #multi #greenShield : event_var(es_attackername) attacsk you but you block it
es_tell event_var(attacker) #multi #greenShield : event_var(es_username) blocks your attack
}
}
if (server_var(wcs_debug) = "1") then echo oni_shield end
}

block oni_firee
{
if (server_var(wcs_debug) = "1") then echo oni_firee start
if (event_var(weapon) in server_var(wcs_wpn_grenades)) do
{
es est_Burn event_var(userid) server_var(wcs_duration)
es_tell event_var(attacker) #multi #greenFire Explosives : You burned event_var(es_username) for server_var(wcs_duration) seconds
es_tell event_var(userid) #multi #greenFire Explosives : event_var(es_attackername) burned you for server_var(wcs_duration) seconds
}
if (server_var(wcs_debug) = "1") then echo oni_firee end
}

block oni_ulti_gifts
{
if (server_var(wcs_debug) = "1") then echo oni_ulti_gifts start
es est_Health server_var(wcs_userid) + server_var(wcs_health)
es_tell server_var(wcs_userid) #multi #greenGift of the Shaman : You gained server_var(wcs_health) health
if (server_var(wcs_debug) = "1") then echo oni_ulti_gifts end
}

This is just a race I made up to test the full block doing method, I didn't plan to release it, but I don't want this problem in the future
Logged
MaroX
Level 3 Trained Apprentice
***
Offline Offline

Sweden

Posts: 77





myServer 208.167.234.221
(Warning: click connects through Steam)
« Reply #1 on: December 22, 2009, 08:10:26 AM »

Code:
    "numberofskills"    "5"
You only got four skills  Undecided

    "skillnames"        "Strike|Shield|Fire Explosives|Gift of the Shaman"

Change numberofskills to 4 to fix the problem.
Logged

EpicDino
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 33



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

thx, didn't notice that  Grin
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
February 02, 2010, 10:43:30 AM
Yap, he mean eventscripter xD
February 02, 2010, 01:03:48 AM
Eventscripter. lol
February 02, 2010, 12:23:17 AM
A WCS scripter?
February 01, 2010, 06:12:18 PM
izh lookeh for 1 scripter to supp0t me
February 01, 2010, 05:14:04 PM
does anyone had a server problem that skin shows errors because people doesn't get .mdl file download....
February 01, 2010, 01:06:01 PM
Type any est_command in console and it will tell you it's syntax automatically Smiley
February 01, 2010, 12:40:20 AM
whats est_freeze syntax?

Recent
[February 02, 2010, 07:24:36 PM]

[February 02, 2010, 06:06:19 PM]

[February 02, 2010, 06:02:56 PM]

[February 02, 2010, 05:57:30 PM]

[February 02, 2010, 05:54:01 PM]

[February 02, 2010, 04:40:07 PM]

[February 02, 2010, 03:29:43 PM]

[February 02, 2010, 09:52:57 AM]

[February 02, 2010, 06:59:11 AM]

[February 02, 2010, 05:12:24 AM]
Theme switch

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