Hp regen help

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Super-xero
Member
Posts: 57
Joined: June 9th, 2010, 10:12 pm

Hp regen help

Post by Super-xero »

I'm wondering if there is a way i can change every hero's hp Regen to 0 then make it go down periodically.
I'm making a rpg and I'm trying to make it as real as i can.
Image Image My triforce spins
User avatar
UndeadxAssassin
Grammar King
Posts: 2116
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: Hp regen help

Post by UndeadxAssassin »

There should be an option in the unit editor that gives hp regen. Just make that value negative.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
User avatar
Super-xero
Member
Posts: 57
Joined: June 9th, 2010, 10:12 pm

Re: Hp regen help

Post by Super-xero »

I know that, but i was hoping i could do it with triggers cause i have like 30 heroes so far.
Image Image My triforce spins
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Hp regen help

Post by owner123 »

Periodic Time - Every x seconds
Unit - Set property (Life) to (Life of (X Unit)) - X

That's what I think. I didn't copy it down directly from WE, but it should be almost correct.
User avatar
Super-xero
Member
Posts: 57
Joined: June 9th, 2010, 10:12 pm

Re: Hp regen help

Post by Super-xero »

Can i do the same this but with unit group instead of unit?
Image Image My triforce spins
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Hp regen help

Post by owner123 »

Yes.
Replace the unit with Picked Unit.
So

Periodic Time - Every x seconds
Pick every unit in x group
Unit - Set property (Life) to (Life of (Picked Unit)) - X
User avatar
Super-xero
Member
Posts: 57
Joined: June 9th, 2010, 10:12 pm

Re: Hp regen help

Post by Super-xero »

Ok tyvm.
Image Image My triforce spins