| This topic has not yet been rated!
|
You have not rated this topic. Select a rating:
|
|
Author |
Topic: Cant get the name of the victim, for my bomb ultimate (Read 142 times)
|
|
[H.F.M.]Rasmus{Chef}
|
 |
« on: November 16, 2008, 10:00:50 PM » |
|
hi guys my problem is that: I do get the victim name to be 0, but I'm out of ways to find the error, so I thought some of you could me? here's the code: GeSHi (eventscripts): "skill6_setting" "es_xset stealth_time 3;es_xrand wcs_rand 1 3;es_xset bomb_damage 10|es_xset stealth_time 4;es_xrand wcs_rand 1 3;es_xset bomb_damage 13|es_xset stealth_time 5;es_xrand wcs_rand 1 3;es_xset bomb_damage 16|es_xset stealth_time 6;es_xrand wcs_rand 1 3;es_xset bomb_damage 19|es_xset stealth_time 7;es_xrand wcs_rand 1 3;es_xset bomb_damage 22|es_xset stealth_time 8;es_xrand wcs_rand 1 3;es_xset bomb_damage 25" "racealias_getpt" "es_xset wcs_player 0;es_xset wcs_team 0;es es_xgetplayerteam wcs_team server_var(wcs_userid);es es_xif (server_var(wcs_team) = 2) then est_randplayer wcs_player #c!d;es es_xif (server_var(wcs_team) = 3) then est_randplayer wcs_player #t!d;es es_xdelayed 0.1 es_xgetplayername wcs_name server_var(wcs_player);es es_xdelayed 0.1 es_xgetplayername wcs_name1 server_var(wcs_userid);es es_xdoblock wcs/WCSultimates/wcs_ulti_bomb;racealias_tell1" "racealias_tell1" "es es_xtell server_var(wcs_userid) #multi #lightgreenYou bombed#green server_var(wcs_name) #lightgreenwith#green server_var(bomb_damage) #lightgreendamage;racelias_tell2" "racealias_tell2" "es es_xtell server_var(wcs_player) #multi #green server_var(wcs_name1) #lightgreenbombed you with#green server_var(bomb_damage) #lightgreendamage" "skill6_cmd" "es es_xif (server_var(wcs_rand) = 1) then es_xdoblock wcs/WCSultimates/wcs_ulti_teleaim;es es_xif (server_var(wcs_rand) = 2) then es_xdoblock wcs/WCSultimates/wcs_ulti_stealth;es es_xif (server_var(wcs_rand) = 3) then racealias_getpt" "skill6_sfx" "0" "ultimate_cooldown" "20"
"skill6_setting" "es_xset stealth_time 3;es_xrand wcs_rand 1 3;es_xset bomb_damage 10|es_xset stealth_time 4;es_xrand wcs_rand 1 3;es_xset bomb_damage 13|es_xset stealth_time 5;es_xrand wcs_rand 1 3;es_xset bomb_damage 16|es_xset stealth_time 6;es_xrand wcs_rand 1 3;es_xset bomb_damage 19|es_xset stealth_time 7;es_xrand wcs_rand 1 3;es_xset bomb_damage 22|es_xset stealth_time 8;es_xrand wcs_rand 1 3;es_xset bomb_damage 25" "racealias_getpt" "es_xset wcs_player 0;es_xset wcs_team 0;es es_xgetplayerteam wcs_team server_var(wcs_userid);es es_xif (server_var(wcs_team) = 2) then est_randplayer wcs_player #c!d;es es_xif (server_var(wcs_team) = 3) then est_randplayer wcs_player #t!d;es es_xdelayed 0.1 es_xgetplayername wcs_name server_var(wcs_player);es es_xdelayed 0.1 es_xgetplayername wcs_name1 server_var(wcs_userid);es es_xdoblock wcs/WCSultimates/wcs_ulti_bomb;racealias_tell1" "racealias_tell1" "es es_xtell server_var(wcs_userid) #multi #lightgreenYou bombed#green server_var(wcs_name) #lightgreenwith#green server_var(bomb_damage) #lightgreendamage;racelias_tell2" "racealias_tell2" "es es_xtell server_var(wcs_player) #multi #green server_var(wcs_name1) #lightgreenbombed you with#green server_var(bomb_damage) #lightgreendamage" "skill6_cmd" "es es_xif (server_var(wcs_rand) = 1) then es_xdoblock wcs/WCSultimates/wcs_ulti_teleaim;es es_xif (server_var(wcs_rand) = 2) then es_xdoblock wcs/WCSultimates/wcs_ulti_stealth;es es_xif (server_var(wcs_rand) = 3) then racealias_getpt" "skill6_sfx" "0" "ultimate_cooldown" "20" Kind regards Rasmus EDIT: I get the name now, BUT however i need to use the ultimate twice to get the name :/ the first time it says 0 bombed you to the victim and you bombed secondary wep. enhancer to the attacker, after the first time, it uses the real names, but why dont it do it the first time then? can you see why that would be the case?
|
|
|
|
« Last Edit: November 17, 2008, 08:16:59 PM by [H.F.M.]Rasmus{Chef} »
|
Logged
|
|
|
|
Zawmbee
Level 2 Apprentice

Offline
 United States
Posts: 51
|
 |
« Reply #1 on: November 17, 2008, 11:03:12 PM » |
|
It may be easier to use wcs_targetid then anything else... because when it happens it gets everything. It is as if the skills does not do it's coding until after one use of the ultimate. targetid gets it the moment you use it. May be annoying to recode, but it should work.
|
|
|
|
|
Logged
|
|
|
|
|
Pre-Dominance
|
 |
« Reply #2 on: November 18, 2008, 03:34:33 AM » |
|
es_xset wcs_name 0 es_xset wcs_name1 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
 United States
Posts: 51
|
 |
« Reply #3 on: November 18, 2008, 03:37:02 AM » |
|
Could've sworn I already saw him have the es_xset code already in there and preset to 0, guess I was imagining it .
|
|
|
|
|
Logged
|
|
|
|
|
[H.F.M.]Rasmus{Chef}
|
 |
« Reply #4 on: November 18, 2008, 08:32:57 AM » |
|
es_xset wcs_name 0 es_xset wcs_name1 0
here's the funny part you guys;) that iøve already done in my es_wcs.txt, so it's by default set to 0 i've made that for wcs_name1, wcs_name2 and 3, so that's not the correct answer
|
|
|
|
|
Logged
|
|
|
|
|
Stinkyfax
|
 |
« Reply #5 on: November 18, 2008, 09:15:27 AM » |
|
How did u decide to get name with delay? ofc it shows 0 remove delayed commands where u obtain name because your block is executed and only then names are taken.
|
|
|
|
|
Logged
|
|
|
|
Zawmbee
Level 2 Apprentice

Offline
 United States
Posts: 51
|
 |
« Reply #6 on: November 18, 2008, 02:40:15 PM » |
|
Rasmus, just set the es_xset in the race and see if it works then. Do not always think it will load up instantaneous. It is probably needing to load the language the first time you use it, then get's the language the second time. Otherwise if that doesn't work, the use the wcs_targetid. May cause alot of changes in your code... sorry . Code On!
|
|
|
|
|
Logged
|
|
|
|
|
[H.F.M.]Rasmus{Chef}
|
 |
« Reply #7 on: November 18, 2008, 03:12:38 PM » |
|
for some reason it seems to be working now, without me doing any changes.
|
|
|
|
|
Logged
|
|
|
|
|
Stinkyfax
|
 |
« Reply #8 on: November 18, 2008, 03:59:16 PM » |
|
there is no code which for some reason sometimes is not buggy sometimes is buggy. I wrote the reason in previous post.
|
|
|
|
|
Logged
|
|
|
|
|
[H.F.M.]Rasmus{Chef}
|
 |
« Reply #9 on: November 18, 2008, 04:18:06 PM » |
|
ok, nevertheless it started working without me changing anything.
|
|
|
|
|
Logged
|
|
|
|
|
Stinkyfax
|
 |
« Reply #10 on: November 18, 2008, 05:11:53 PM » |
|
I can prove you that you're wrong. Theory > practic example.
|
|
|
|
|
Logged
|
|
|
|
|
[H.F.M.]Rasmus{Chef}
|
 |
« Reply #11 on: November 18, 2008, 10:16:57 PM » |
|
Stinky, as much as i admire you, as much you can keep on with that im right your wrong thing you got going, i still know what happened
|
|
|
|
|
Logged
|
|
|
|
|
|
|