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-04-15 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 15, 2008, 11:46:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
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: need help with live per enemy skill  (Read 55 times)
mobsi
Level 2 Apprentice
**
Offline Offline

Germany Germany

Posts: 52



« on: April 09, 2008, 08:58:45 PM »

hey i made this skill as one of my first ones and it doesnt work :/

Code
GeSHi (eventscripts):
"skill3_setting" "es_xsetinfo wcs_hp 10|es_xsetinfo wcs_hp 15|es_xsetinfo wcs_hp 20|es_xsetinfo wcs_hp 25|es_xsetinfo wcs_hp 30"
"skill3_cmd" "es_getplayerteam teaam event_var(userid);if (event_var(teaam) = 3) then racealias_ctctctct; if (event_var(teaam) = 2) then racealias_tttt"
"racealias_ctctctct" "es_xsetinfo wcs_player 0;es es_getplayercount wcs_player 2;racealias_hp12345"
"racealias_tttt" "es_xsetinfo wcs_player 0;es es_getplayercount wcs_player 3;racealias_hp12345"
"racealias_hp12345" "es_math wcs_hp * server_var(wcs_player);es est_health event_var(userid) + server_var(wcs_hp)"
"skill3_sfx" "0"
 

the skill is supposed to give you at spawn per enemy an amount of hp
i tryed to fix the skill myself but i got no more ideas so i thought i post
it here and hope someone got an idea how to get the skill working =)

greez mobsi
Logged
Zumble
Level 5 Trained Intermediate
*****
Offline Offline

Russian Federation

Posts: 114




zumble

myServer 77.220.182.48:27015
(Warning: click connects through Steam)
« Reply #1 on: April 10, 2008, 01:53:35 PM »

As for me,I don't see any mistakes.Maybe you should write "es es_" everywhere
Logged

mobsi
Level 2 Apprentice
**
Offline Offline

Germany Germany

Posts: 52



« Reply #2 on: April 10, 2008, 03:22:08 PM »

well i found 1 mistake and fixed it
had forgot to set the teaam ^^

i just added "es_setinfo teaam 0;"

but it still refuses to work and the bad thin is that i dont get any bugreports or errors from the console now :/

greez mobsi

btw: could it be that es_getplayercount doesn count the bot players?
       or perhaps a math fault cause i dunno if i have to float the var cause both are int values

Logged
mobsi
Level 2 Apprentice
**
Offline Offline

Germany Germany

Posts: 52



« Reply #3 on: April 10, 2008, 05:24:58 PM »

well i fixed it finally =)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
April 14, 2008, 08:47:37 PM
Seconds u there
April 14, 2008, 06:57:57 PM
Ty see u there
April 13, 2008, 11:00:29 PM
@overfinch123, your application has been accepted
April 13, 2008, 10:10:47 PM
ESELADDEN I entered your WCS tournament i left a reply want me to send itt to you?
April 13, 2008, 10:09:54 PM
Eseladden u there?
April 13, 2008, 08:30:55 AM
WCSUsers db file, move that file
April 13, 2008, 06:24:38 AM
Hey guys how do I move levels to another server?
Recent
[Today at 11:21:51 PM]

[Today at 09:22:37 PM]

[Today at 08:18:30 PM]

by West
[Today at 08:14:12 PM]

by Jeff
[Today at 06:51:25 PM]

[Today at 06:08:09 PM]

[Today at 06:03:36 PM]

[Today at 05:50:59 PM]

[Today at 04:20:36 PM]

[Today at 02:50:39 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.075 seconds with 25 queries.