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-12-06 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 06, 2008, 12:33:51 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
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: Ultimate skill evade dmg for a specific amount of time  (Read 116 times)
maxxi
Level 4 Intermediate
****
Online Online

Netherlands Netherlands

Posts: 88



« on: November 03, 2008, 02:09:00 PM »

I was trying to make an ultimate that will give you % of change to evade dmg for a specific amount of time. I am not very good at scripting yet so thats why i ask for (code isn't all mine i used molecule evade.)

I dont know if what i ask is possible but i hope so

Code:
    "skill2_setting"    "es_xsetinfo wcs_duration 2.0;es_xset wcs_chance 17|es_xsetinfo wcs_duration 3.5;es_xset wcs_chance 20|es_xsetinfo wcs_duration 5.0;es_xset wcs_chance 23|es_xsetinfo wcs_duration 6.5;es_xset wcs_chance 26|es_xsetinfo wcs_duration 8.0;es_xset wcs_chance 29|es_xsetinfo wcs_duration 10.0;es_xset wcs_chance 32"
    "racealias_ice1"    "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_Health event_var(userid) + event_var(dmg_health);wcs_getlanguage wcs_lng wcs_lng_r_evade;es es_xtell event_var(userid) #multi server_var(wcs_lng)"
    "skill2_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_isalive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_ice1"
    "skill2_sfx"        "0"
    "ultimate_cooldown" "25"

I dont know how to make sure that the evade skill only lasts a specific amount of time

If anyone could me i would be thankfull
Logged
Berettonawak
Level 7 Expert
*****
Offline Offline

France France

Posts: 795


Big Berettonawak is watching you...


WWW
Berettonawak
Berettonawak

myServer 81.93.59.99:30000
(Warning: click connects through Steam)
« Reply #1 on: November 03, 2008, 02:32:57 PM »

could be possible with keysets/keygets
Logged

Fanatic
Level 1 Trained Beginner
*
Offline Offline

Netherlands Netherlands

Posts: 35



« Reply #2 on: November 03, 2008, 02:34:50 PM »

Berettonawak can you code this skill? :p
« Last Edit: November 03, 2008, 02:47:27 PM by Fanatic » Logged
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #3 on: November 17, 2008, 10:19:40 PM »

could be possible with keysets/keygets

in theory it should be possible to make very simple like fly skills you can turn on and off.
but you wouls have to have some checks running in the background all the time ro see if you are getting hurt and if yes, then how much, and add that amount to the health you have right. that would cause a huge amount of cpu needed to check for damage every fraction of a second throughout maybe 10 seconds.

i dont know if you can do it any other way, but that is the only i can think of now.
if it'spossible to use event player_victim inside the skill cmd then i would happily try to make the skill for you.
Logged

Zawmbee
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 51



« Reply #4 on: November 17, 2008, 10:51:40 PM »

Code:
    "skill1_setting"    "es_xset wcs_duration 5"
    "racealias_evade"   "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_Health server_var(wcs_userid) + event_var(dmg_health);es es_xif (server_var(wcs_game) != server_var(wcs_game_css));es_xdelayed server_var(Wcs_duration) est_health server_var(wcs_userid) - event_var(dmg_health)"
    "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_isalive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_evade"
    "skill1_sfx"        "0"
    "ultimate_cooldown" "0"

Hmmm, I dunno, but this may work only once per use.  Maybe, since I can't think of a shorter way because I have to time to code this, try making it so that they should use their choice to use evade wisely??? 
Logged
maxxi
Level 4 Intermediate
****
Online Online

Netherlands Netherlands

Posts: 88



« Reply #5 on: November 17, 2008, 11:06:32 PM »

Code:
    "skill1_setting"    "es_xset wcs_duration 5"
    "racealias_evade"   "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_Health server_var(wcs_userid) + event_var(dmg_health);es es_xif (server_var(wcs_game) != server_var(wcs_game_css));es_xdelayed server_var(Wcs_duration) est_health server_var(wcs_userid) - event_var(dmg_health)"
    "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_isalive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_evade"
    "skill1_sfx"        "0"
    "ultimate_cooldown" "0"

Hmmm, I dunno, but this may work only once per use.  Maybe, since I can't think of a shorter way because I have to time to code this, try making it so that they should use their choice to use evade wisely??? 
you mean once a round or 1 time evade
Logged
Zawmbee
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 51



« Reply #6 on: November 17, 2008, 11:15:19 PM »

you mean once a round or 1 time evade
Once a round, for the time you set it for.
Logged
maxxi
Level 4 Intermediate
****
Online Online

Netherlands Netherlands

Posts: 88



« Reply #7 on: November 17, 2008, 11:56:22 PM »

if you could make that it would be great
Logged
Pre-Dominance
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 179



WWW
killweiser187
predom
« Reply #8 on: November 18, 2008, 03:38:00 AM »

Well, there is another way...
Make a keyset that changes it to one, and then make another player_victim skill. It will require only one point to be activated.

Basically, it checks that the player has their block set to true. It will add all their health back with est_addhealth event_var(dmg_health) event_var(userid). Then at the end of 10 seconds it sets their key back to 0.

Logged

Need helÞ?

Steam:killweiser187
Msn:[email protected]                       I don't
Xfire:predom                                        think that
Clan:?WwT? Wcs/Zm mod.                   They'll read
ClanWeb:wwt-clan.info                            the side
Zawmbee
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 51



« Reply #9 on: November 18, 2008, 03:46:10 AM »

Forgot, yeah.  You can just put es_xset evade 1, put that in your skill_setting and then put es_xdelayed server_var(wcs_time) es_xset evade 0 in your cmd.  That way you can use the command es_xif (server_var(evade) = 1) then racealias_wahtever.  Thnx for showing me I am a moron at seeing the easier way of things.  I think I make things a bit too complicated.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 04, 2008, 09:57:56 PM
gg
December 04, 2008, 09:46:16 PM
hey guys, how are you?
gonna sleep, cya tomorrow
December 03, 2008, 12:45:48 PM
@ bombkill : all mods should be compatible with WCS... but we can't be sure
@retrokboy : css server? provider? other mods?
December 03, 2008, 01:49:25 AM
I NEED SERVER HELP MY FORUM IS IN BUG REPORT PLEASE REPLY I NEED HALP
December 02, 2008, 10:05:01 PM
does anyone know where all the wcs compatible mods are listed or a website i can find them
December 02, 2008, 08:24:47 PM
/agree
Recent
[Today at 09:15:37 AM]

[Today at 08:33:01 AM]

[Today at 12:26:04 AM]

[December 05, 2008, 10:26:03 PM]

[December 05, 2008, 08:10:32 PM]

[December 05, 2008, 07:51:01 PM]

[December 05, 2008, 07:33:12 PM]

[December 05, 2008, 07:11:25 PM]

[December 05, 2008, 06:44:09 PM]

[December 05, 2008, 12:14:07 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.046 seconds with 25 queries.