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-11-21 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
November 21, 2009, 09:29:55 PM *
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] 2   Go Down
  Print  
Author Topic: Race HEALTH SKILL  (Read 91 times)
iAndrew
Level 0 Beginner

Offline Offline

United States United States

Posts: 10



« on: November 17, 2009, 11:09:45 PM »

So does anyone know the Ultimate skill for unlimited health?
I want a race that can't ever die. So if someone shoots me, I dont die.

Any ideas? code?

Thanks! Smiley
Logged
Cannon-Fodder
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 48


Skittles, rainbow, skittles, rainbow... @_@


« Reply #1 on: November 17, 2009, 11:29:41 PM »

There are quite a few ways to do this... Toggle god mode, set health to be incredibly high, give 100% evasion (doesn't always prevent death...)...

If what you're looking for is unlimited health, though, I'd probably have the Ultimate skill set a key value to 1 (and then delay set it to 0 for whenever it ends), and set the player's health to be extremely high. Then, I'd create an event player_hurt code so that whenever a player with a true value for that key value is hurt, their health becomes that extremely high number again. And finally, when the effect ends, set the player's health to something more normal (50, 100, whatever it was at before the ultimate was used, etc).
Logged

iAndrew
Level 0 Beginner

Offline Offline

United States United States

Posts: 10



« Reply #2 on: November 17, 2009, 11:34:00 PM »

How much for code? Smiley
Logged
Sasuke[Icetouch]
Level 3 Trained Apprentice
***
Online Online

Germany Germany

Posts: 76


FreeTimeCoder


« Reply #3 on: November 17, 2009, 11:48:31 PM »

Just set the players health above 500 at roundstart, and everytime he gets hit, add the amount of health he got hit, or just add a fix number like 500.
Simple as that.
Logged
iAndrew
Level 0 Beginner

Offline Offline

United States United States

Posts: 10



« Reply #4 on: November 18, 2009, 12:07:17 AM »

I dont know how to code that part. Smiley ha.

Please help! Cheesy
Logged
Cannon-Fodder
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 48


Skittles, rainbow, skittles, rainbow... @_@


« Reply #5 on: November 18, 2009, 03:48:52 AM »

I think it'd be something like this:

Code
GeSHi (eventscripts):
   "skill5_setting"    "es_xset wcs_duration 4"
   "racealias_inv"     "es_tell server_var(wcs_userid) #multi #lightgreenYou have become invincible for#green server_var(wcs_duration) #lightgreenseconds, and will be reduced to#green 50 #lightgreenhealth when this effect ends"
   "skill5_cmd"        "es_keysetvalue WCSuserdata server_var(wcs_userid) invuln 1;es est_sethealth server_var(wcs_userid) 10000;es_delayed server_var(wcs_duration) es_keysetvalue WCSuserdata server_var(wcs_userid) invuln 0;es es_xdelayed server_var(wcs_duration) est_sethealth server_var(wcs_userid) 50;racealias_inv"
   "skill5_sfx"        "0"
   "ultimate_cooldown" "45"
 
event player_hurt
{
es_keygetvalue wcs_tmp WCSuserdata event_var(userid) invuln
ifx true(wcs_tmp) do
 {
 es_xset wcs_dmg event_var(dmg_health)
 es est_sethealth event_var(userid) 10000
 }
}
Logged

iAndrew
Level 0 Beginner

Offline Offline

United States United States

Posts: 10



« Reply #6 on: November 18, 2009, 10:43:01 PM »

It works.. But it doesnt do anything. lol.
I die. Sad I even set it to 9,000 secs.
Logged
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 500




doug_tiozao
« Reply #7 on: November 18, 2009, 11:46:08 PM »

You can just make a skill that when the ultimate is used you set the user health to a value, and after some seconds it setted back to a value that you want:
Code:
"skillx_setting"    "es_xset undead_hp x;es_xset undead_time x;es_xset after_ulti x"
"skillx_cmd"        "es est_sethealth server_var(wcs_userid) + server_var(undead_hp);es_tell event_var(userid) #multi #default You got #lightgreenUndead #defaultfor #lightgreenserver_var(undead_time);es_delayed server_var(undead_time) es est_sethealth server_var(wcs_userid) + server_var(after_ulti);es_tell event_var(userid) #multi #default You are Back to #lightgreenNormal....
"skillx_sfx"        "0"

Or you can set a keyvalue getting value from the user health, the set the health to the value you want, after some seconds you get value and set the health of the user for it... It requires a lil time to code...
Logged

Lol?
Cannon-Fodder
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 48


Skittles, rainbow, skittles, rainbow... @_@


« Reply #8 on: November 19, 2009, 03:20:02 AM »

It works.. But it doesnt do anything. lol.
I die. Sad I even set it to 9,000 secs.
Did you set the skill to have the correct number of levels for the race that you wanted to put it in? Shocked
Logged

Stinkyfax
I <3 WCS
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 1896



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #9 on: November 19, 2009, 05:25:47 AM »

I'm disappointed of current wcs races development and requests.
Logged



[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 1362



WWW
bonggged

myServer 72.5.102.44:27015
(Warning: click connects through Steam)
« Reply #10 on: November 19, 2009, 02:39:07 PM »

If you wanted to do it for a certain time I think you are just asking for the same ultimate as shadow hunter.

It uses god mode so it doesnt die and it is on a timer.

If you wanted to toggle it with ultimate button besides being overpowered and dumb use toggle the way rapscallion by Holiday does.

I DONT RECOMMEND THAT THOUGH!
Logged

Sasuke[Icetouch]
Level 3 Trained Apprentice
***
Online Online

Germany Germany

Posts: 76


FreeTimeCoder


« Reply #11 on: November 19, 2009, 02:53:55 PM »

I don't recommend doing that whole thing after all.
And I have to agree with Stinkyfax's statement, as far as I could see since I'm back, it's...the questions are...whatever.
Logged
Volkano,
Level 2 Apprentice
**
Offline Offline

Brazil Brazil

Posts: 47




[RankBr] Volkano
Don't have
« Reply #12 on: November 19, 2009, 06:11:51 PM »

Code:
"skillx_cmd"        "es est_sethealth server_var(wcs_userid) + server_var

I think you mean es est_health server_var(wcs_userid) + server_var
Logged

AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 500




doug_tiozao
« Reply #13 on: November 19, 2009, 07:22:31 PM »

@volkano

FIRST LOOK FOR THE EST COMMANDS THEN ANSWER Smiley
Logged

Lol?
Volkano,
Level 2 Apprentice
**
Offline Offline

Brazil Brazil

Posts: 47




[RankBr] Volkano
Don't have
« Reply #14 on: November 19, 2009, 08:08:34 PM »

http://www.eventscripts.com/pages/Est_SetHealth
:
Syntax: est_SetHealth <players> <value>
Parameters
players - See Est_PlayerSelection for player selection help.
#t - terrorists.
#c - counter-terrorists.
value - health so will be set.

-------------------------------------------------------------------

http://www.eventscripts.com/pages/Est_Health
:
Syntax: est_Health <players> <operator> <number>
Parameters
players - See Est_PlayerSelection for player selection help.
#t - terrorists.
#c - counter-terrorists.
operator - Can be any of the following
+ - also can use add
- - also can use subtract
number - The number so will be add or subtracted

------------------------------------------------------------------


Yeah Yeah :x
« Last Edit: November 19, 2009, 08:21:48 PM by Volkano, » Logged

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

Last 7 Shouts:
Today at 09:18:21 PM
but he does not need 2 if he's only using WCS, there is no need for python.
Today at 09:00:24 PM
shemeshakesalot

is a fudge tard.
Today at 08:27:56 PM
there is since that es is 1.5 and not 2 =p
Today at 04:32:28 PM
If treefarmer downloaded the v0.77 Full, there is no need to download eventscripts again.
Today at 04:40:17 AM
sruigqu: Notepad?
November 20, 2009, 09:59:21 PM
k got the scrip in the cstrike foler
November 20, 2009, 09:47:43 PM
go to mattie.info
and get eventscripts.
Recent
[Today at 09:20:16 PM]

[Today at 07:39:42 PM]

[Today at 07:00:10 PM]

[Today at 05:58:52 PM]

[Today at 04:55:45 PM]

[Today at 04:49:19 PM]

[Today at 04:41:13 PM]

[Today at 03:50:48 PM]

[Today at 03:16:11 PM]

[Today at 02:44:57 PM]
Theme switch

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