| This topic has not yet been rated!
|
You have not rated this topic. Select a rating:
|
|
Author |
Topic: Give Armor... (Read 203 times)
|
Boxin
Level 0 Beginner
Offline
 United States
Posts: 7
Suprise Buttsecks!
 aducrossaducross
|
 |
« on: December 30, 2007, 11:08:38 PM » |
|
Hello there . Yes, I am new, but I have been viewing the forums for sometime, looking at everything that's answered my questions about scripting or the WCS itself. I have been scripting for about a month now (with a lot of from this site) and I have a question I'd like to ask, which probably be very simple, but here it is. I was trying out writing my own script from scratch, instead of the usual copy & paste, and I got stuck on this:
"skill3_setting" "es_xsetinfo wcs_hb 20|es_xsetinfo wcs_hb 25|es_xsetinfo wcs_hb 30|es_xsetinfo wcs_hb 35|es_xsetinfo wcs_hb 40|es_xsetinfo wcs_hb 55|es_xsetinfo wcs_hb 60" "skill3_cmd" "es est_Health event_var(userid) + server_var(wcs_hb);es es_xdelayed 0.5 es_xtell event_var(userid) #multi #Lightgreen : You gained #Green server_var(wcs_hb) #Lightgreen extra health"
I'm pretty sure on the obvlivious parts like "es est_Health" should be "es est_Armor" for armor, and "You gained #Green server_var(wcs_hb) #Lightgreen extra armor", but I'm a bit confused on the "hb" parts. What should the code for that be? Armor? Or a shorthand version like health is?
|
|
|
|
|
Logged
|
|
|
|
Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
   
Offline
Norway
Posts: 588
 GastingorMursatmyServer 74.86.98.64:27017(Warning: click connects through Steam)
|
 |
« Reply #1 on: January 17, 2008, 10:36:34 AM » |
|
Wouldnt est_armor work here? Atleast thats what I normally use
|
|
|
|
|
Logged
|
|
|
|
|
[H.F.M.]Rasmus{Chef}
|
 |
« Reply #2 on: January 17, 2008, 10:41:55 AM » |
|
what do you mean by hb? please explain it a little more...
|
|
|
|
|
Logged
|
|
|
|
Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
   
Offline
Norway
Posts: 588
 GastingorMursatmyServer 74.86.98.64:27017(Warning: click connects through Steam)
|
 |
« Reply #3 on: January 17, 2008, 12:35:53 PM » |
|
"skill4_setting" "es_xsetinfo wcs_armor 25|es_xsetinfo wcs_armor 50|es_xsetinfo wcs_armor 75|es_xsetinfo wcs_armor 100|es_xsetinfo wcs_armor 120" "skill4_cmd" "es est_Armor event_var(userid) + server_var(wcs_armor);es es_xtell event_var(userid) #lightgreen Your armor has been Upgraded in server_var(wcs_armor) point(s)" "skill4_sfx" "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xgetplayerlocation"
That is one of Nova's skills.. No point in re-making it when its already made.
|
|
|
|
« Last Edit: January 17, 2008, 12:38:21 PM by Espeladden »
|
Logged
|
|
|
|
Boxin
Level 0 Beginner
Offline
 United States
Posts: 7
Suprise Buttsecks!
 aducrossaducross
|
 |
« Reply #4 on: January 25, 2008, 12:38:10 AM » |
|
I wasn't asking for a remake, just some . Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Zero Skillz
|
 |
« Reply #5 on: January 25, 2008, 01:03:29 AM » |
|
Ya i just recently coded one, its in Hollidays forums tho if you wanna take a look but w/e anything works i guess..
|
|
|
|
|
Logged
|
|
|
|
Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
   
Offline
Norway
Posts: 588
 GastingorMursatmyServer 74.86.98.64:27017(Warning: click connects through Steam)
|
 |
« Reply #6 on: January 25, 2008, 06:11:41 PM » |
|
dont understand why u cant use that one, but whatever.. Do what u want, its not me waisting time on something pointless
|
|
|
|
|
Logged
|
|
|
|
|
[H.F.M.]Rasmus{Chef}
|
 |
« Reply #7 on: January 27, 2008, 03:46:52 PM » |
|
i think the easiest way might be to do a wcs_chance and then a racealias using es est_ArmorAdd event_var(userid) <amount of armor>... thats what i have done
|
|
|
|
|
Logged
|
|
|
|
KaBoom
Level 4 Intermediate
  
Offline
 United States
Posts: 92
Sorta know Python. . .
famaskaboom
|
 |
« Reply #8 on: February 15, 2008, 11:22:54 PM » |
|
Sorry for reviving this topic, but just to let you know, if you come back, wcs_hb is just a variable. You can name it anything you want.
|
|
|
|
|
Logged
|
Don't reply, unless you have something useful to say.
Don't steal. The government hates competition.
There are 10 kinds of people in this world, those who can read binary and those who can't.
|
|
|
|
|
|