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-04-17 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 17, 2009, 05:26:44 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Join the new Facebook Warcraft-Source.com Group! It has been currently opened!
Join!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: I need some skill help.  (Read 59 times)
Doku
Level 2 Apprentice
**
Online Online

United States United States

Posts: 44



« on: April 16, 2009, 02:43:31 AM »

I know this has had to have been done dozens of times and I've seen the codes for races with this ability, but I don't want to copy and paste because most of the codes for this skill are confusing. And if I were to copy and paste the code, I most likely won't understand how it was coded and I aim to learn how to do these things. 
So my question is, how do I make a Regeneration ability that gives "x" amount of health every second?

Note: When I say I don't want to copy and paste, I mean I don't want people telling me to go copy and paste w.e race they say and not explaining how it was coded.  Feel free to post a code or link me to a race with this ability but please try to explain it a little if you do.
« Last Edit: April 16, 2009, 02:54:34 AM by Doku » Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
WCA | Berettonawak [FR]
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 1878


Big Berettonawak is watching you...


WWW
Bifkids

myServer 81.93.251.44:27015
(Warning: click connects through Steam)
« Reply #1 on: April 16, 2009, 03:26:07 PM »

With an ability code linking to a block, and then looping the command in the block.
www.eventscripts.com/pages/Repeat
Logged

Doku
Level 2 Apprentice
**
Online Online

United States United States

Posts: 44



« Reply #2 on: April 16, 2009, 04:09:42 PM »

Alrighty then I suppose my next question is how do I make an ability block (I haven't been coding for that long)?  Tongue
Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Bob
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 89



« Reply #3 on: April 16, 2009, 04:17:11 PM »

I also have a question about that repeat how does that work not in a block?
Logged
Doku
Level 2 Apprentice
**
Online Online

United States United States

Posts: 44



« Reply #4 on: April 16, 2009, 04:33:36 PM »

So yea I'm still confused.  I don't see why this would need an ability block.
Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Bob
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 89



« Reply #5 on: April 16, 2009, 04:38:32 PM »

ok here is the code for the regeneration thing

Code
GeSHi (eventscripts):
   "skill7_setting"    "es_xsetinfo wcs_hp 4;es_xsetinfo wcs_time 8;es_xsetinfo wcs_waves 14;es_xsetinfo wcs_radius 200|es_xsetinfo wcs_hp 5;es_xsetinfo wcs_time 7;es_xsetinfo wcs_waves 12;es_xsetinfo wcs_radius 220|es_xsetinfo wcs_hp 5;es_xsetinfo wcs_time 8;es_xsetinfo wcs_waves 12;es_xsetinfo wcs_radius 250"
   "skill7_cmd"        "es es_xkeysetvalue WCSuserdata event_var(userid) regeneration 1;es es_xkeysetvalue WCSuserdata event_var(userid) regen_round server_var(wcs_roundcounter);es wcs_regeneration event_var(userid) server_var(wcs_hp) server_var(wcs_time) 150 server_var(wcs_waves) server_var(wcs_radius)"
   "skill7_sfx"        "0"

    "skill7_setting"    "es_xsetinfo wcs_hp 4;es_xsetinfo wcs_time 8;es_xsetinfo wcs_waves 14;es_xsetinfo wcs_radius 200|es_xsetinfo wcs_hp 5;es_xsetinfo wcs_time 7;es_xsetinfo wcs_waves 12;es_xsetinfo wcs_radius 220|es_xsetinfo wcs_hp 5;es_xsetinfo wcs_time 8;es_xsetinfo wcs_waves 12;es_xsetinfo wcs_radius 250"
    "skill7_cmd"        "es es_xkeysetvalue WCSuserdata event_var(userid) regeneration 1;es es_xkeysetvalue WCSuserdata event_var(userid) regen_round server_var(wcs_roundcounter);es wcs_regeneration event_var(userid) server_var(wcs_hp) server_var(wcs_time) 150 server_var(wcs_waves) server_var(wcs_radius)"
    "skill7_sfx"        "0"

Red = how much hp healed
Yellow = how long untill the next wave
Blue = how many waves
Purple = Radius on who else will get healed on your team (you can set radius to 1 if you just want you to be healed)

EDIT* i will be off for 2-3 hours so dont ask me stuff Sad
« Last Edit: April 16, 2009, 04:40:31 PM by Bob » Logged
Koshy
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 544



WWW
koshyy
koshy

myServer 216.246.49.100:27015
(Warning: click connects through Steam)
« Reply #6 on: April 16, 2009, 04:38:59 PM »

I would agree with Repeat, but I am finding problem with it if the timer is high like 10 or so seconds between... it is hard to explain but sufficient to say it will stack the repeat rather then only one running 2-3 will run... IDK if this is just me but I plan to move AWAY from repeats soon.
Logged

<--- WCS MOD
Doku
Level 2 Apprentice
**
Online Online

United States United States

Posts: 44



« Reply #7 on: April 16, 2009, 05:04:22 PM »

It's supposed to be every second you regenerate 2 hp indefinitely, but you stop regenerating once you hit 100 hp
« Last Edit: April 16, 2009, 05:06:35 PM by Doku » Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Koshy
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 544



WWW
koshyy
koshy

myServer 216.246.49.100:27015
(Warning: click connects through Steam)
« Reply #8 on: April 16, 2009, 05:04:42 PM »

It's supposed to be every second you regenerate 2 hp

Then if it will always be like that use repeat.
Logged

<--- WCS MOD
Doku
Level 2 Apprentice
**
Online Online

United States United States

Posts: 44



« Reply #9 on: April 16, 2009, 05:10:32 PM »

Lol dude sorry I edited in more details while you were posting  Tongue

Read the post again
« Last Edit: April 16, 2009, 06:20:12 PM by Doku » Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Doku
Level 2 Apprentice
**
Online Online

United States United States

Posts: 44



« Reply #10 on: April 16, 2009, 07:03:43 PM »

I looked at some races that used regen and now I don't understand the whole
Code:
es_xsetinfo wcs_count <#>;es_xsetinfo wcs_params <#>_<#>_<#>
« Last Edit: April 16, 2009, 07:11:02 PM by Doku » Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Bob
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 89



« Reply #11 on: April 16, 2009, 07:12:16 PM »

well if you would use a repeat you would need to use est_isalive kind of thing
Logged
Doku
Level 2 Apprentice
**
Online Online

United States United States

Posts: 44



« Reply #12 on: April 16, 2009, 07:15:41 PM »

I'm still confused  Huh
Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Bob
Level 4 Intermediate
****
Offline Offline

United States United States

Posts: 89



« Reply #13 on: April 16, 2009, 07:16:24 PM »

I looked at some races that used regen and now I don't understand the whole
Code:
es_xsetinfo wcs_count <#>;es_xsetinfo wcs_params <#>_<#>_<#>

no thats for wards params are ummm.... Koshy i choose you!
Logged
Doku
Level 2 Apprentice
**
Online Online

United States United States

Posts: 44



« Reply #14 on: April 16, 2009, 07:26:41 PM »

Lol yea I seriously need some help, I was looking at Stinky's Sacred Warrior for this.  I use the code because I didn't understand it.
Logged

A wise man once said that your neighbor's toilet is an excellent source of free water.  This same man also tried to arrange Mn'Ms in alphabetical order.
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 04:10:06 PM
Today at 06:39:20 AM
omg stop spamming the shout box...it getting more annoin and that's how now everyone doesn't want to chat here
April 16, 2009, 05:40:22 PM
I still be needing more help on this one
ARRRGGHHH

http://warcraft-source.com/board/index.php/topic,6981.0.html
April 16, 2009, 03:47:16 PM
yes you're right
Recent
[Today at 05:26:09 PM]

[Today at 05:25:08 PM]

[Today at 04:53:34 PM]

by Narb
[Today at 03:13:15 PM]

[Today at 03:10:31 PM]

by Bob
[Today at 03:04:26 PM]

[Today at 02:41:17 PM]

by Bob
[Today at 02:01:46 PM]

[Today at 10:40:30 AM]

[Today at 10:37:40 AM]
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.078 seconds with 27 queries.