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 2010-01-15 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 15, 2010, 07:59:57 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]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: I would like to understand wcs_regen  (Read 40 times)
EpicDino
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 33



« on: December 31, 2009, 09:06:27 AM »

Hey, I've been getting into some serious coding lately, trying to code some of the beginning WoW races like the Dreanei. And for the Draenei I wanted a regeneration skill.

However, before I go into coding the skill, I would appreaciate to know a little more about the syntax, and also how it was used in Shadow Hunter, I want to make sure I understand how to use it so I dont go about just C/P'ing it from shadow hunter.

Can somebody help?

Also, as a side note, I would also like to learn mroe about es_keysetvalue and es_getkeyvalue (was that it?)

Thank you
Logged
AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 738




doug_tiozao
« Reply #1 on: December 31, 2009, 07:41:01 PM »

Well, explain better what you want, you want a regeneration but, how much hp it regenerates, how many time it takes to be regenerated....

es_keysetvalue:
It's a very useful command, it sets a value for a key, like es_keysetvalue WCSusedata event_var(userid) regenerate 10
You're setting a value (10) for regenerate, don't forget to use a es_xset regenerate 0, then you make a player_victim skill with a es_doblock yourscript/regenerate, put a event player_hurt
Inside of it you use es_xset myvar 0 es_keygetvalue myvar WCSuserdata event_var(userid) regenerate, it will get the value that you setted on es_keysetvalue, and will return it on the variable myvar, there is a lot of possibilities for using keys, it's very good but you have to be carefull...
Logged

Lol?
EpicDino
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 33



« Reply #2 on: December 31, 2009, 08:46:22 PM »

AvasT, your one of my favorite users on the forum, but as usual I can't understand a single word your saying...

Logged
gimik
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 198



« Reply #3 on: December 31, 2009, 09:29:29 PM »

Yeah I'm kinda like  Huh
Logged




AvasT
Level 7 Expert
*****
Offline Offline

Brazil Brazil

Posts: 738




doug_tiozao
« Reply #4 on: December 31, 2009, 09:55:25 PM »

xD, just try to read it, if you start to play with keyvalues and keygroups you would understand, it's pretty simple, but you have to dedicate your self for it :S
Logged

Lol?
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
January 14, 2010, 06:18:58 PM
here is the topic i created... please put the skills in there: http://warcraft-source.com/board/index.php/topic,9315.0.html
January 14, 2010, 06:15:26 PM
O.K. I started now the project for a new RaceCreator... I will programm it and upload it then.... would be nice if you could make a topic with all skills texno and all others (sepretated in "player_attacker" etc. )
January 14, 2010, 05:30:29 PM
yeah..
January 14, 2010, 04:11:46 PM
Oh i see... not very much skills / ultimates... and just maximum 4 lvl for the skills lol....
January 14, 2010, 04:08:57 PM
thanks, are there any bugs ?? I can't fix it because first : don't have the programm code and second : don't know if he wrote it in C#...^^
January 14, 2010, 11:37:50 AM
Here's the link... maby you can update it Termi ? "http://warcraft-source.com/board/index.php/topic,6199.0.html"

http://warcraft-source.com/board/index.php/topic,6199.0.html
January 13, 2010, 07:26:02 PM
No prob dude
Recent
[Today at 07:28:23 PM]

by NeSo
[Today at 07:20:35 PM]

[Today at 06:07:34 PM]

[Today at 05:01:54 PM]

[Today at 02:35:34 PM]

[Today at 04:18:29 AM]

[Today at 03:10:50 AM]

[Today at 02:51:49 AM]

[January 14, 2010, 06:58:10 PM]

[January 14, 2010, 03:48:10 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.083 seconds with 24 queries.