Unit Life won't change...

  • Thread starter Thread starter BTripleC
  • Start date Start date
B

BTripleC

Guest
I want to change a unit's life when it enters a region. My trigger is:

Upgrade
Events
Unit - A unit enters Region 007 <gen>
Conditions
Initial_Copy_Copy_Copy Equal to 1
(Owner of (Entering unit)) Equal to Player 1 (Red)
Actions
Game - Display to Player Group - Player 1 (Red) for 10.00 seconds the text: Hellknight has grown stronger. He now has more hit points.
Unit - Set life of (Entering unit) to 175.00
Trigger - Turn off (This trigger)


The message in my trigger is displayed, but the entering unit's life does not change to 175. Initial_Copy_Copy_Copy is an integer on a leaderboard and that works fine, so I'm not sure why the unit life doesn't change. Any help would be appreciated.
 
hrm, seems strange, if everything works and the life doesnt change... maybe try changing the action from: Unit - Set life of (Entering unit) to 175.00 to Unit - Set life of (your specific unit) to 175.00? Might work, its worth a shot, but if it wont set your red units life up, then it probably wont work when you use a specific unit either...
 
That's the problem, though, because I want it to affect any unit owned by Red not just one particular unit.
 
I'm pretty sure that trigger will only set the units life to 175, literally I mean. As in, say, I have a unit with 300 hp enter your region. That trigger will set the units life to 175 out of 300 (damaging the unit, not lowering its max hp). Why don't you try adding a hero ability that will add X hp?

dArKz
 
The unit I have entering the region has only 100hp and when he enters the region nothing happens-no damage, no lowering, nothing. Do you think if I did "add 75 hp", instead of "setting" the hp, then it would work? It's just perplexed because this seems like such a simple trigger and I'm sure other people have pulled it off in the past. I just can't figure out what's up. As for the hero ability thing... are there any abilities that can actually change the overall hp of a unit? :confused:
 
Blimey, just tried the hero ability thing and with no success. Changing a life should not be that hard...argh...

Any geniuses out there who know how to do this?
 
Set Life is used like this:

A unit with 100/100 and you set its life to 50, then the unit will now be 50/100, and not 50/50. Since you set your 100/100 unit to 175, then there will be no change because it exceeds the maximum health.

Why don't you try giving the entering unit the Item spell of the health increasing ability (so no icon) and give it a negative value for health increase (so health decreases); and then take it away when it leaves.
 
^ That's exactly what I was saying, and the ITEM spell, is exactly what I meant. I'm just real tired and typed hero by accident. (I can't even think of any usable hero spells that add hp aside from avatar).
 
well on your trigger i noticed the entering unit... in Unit - Set life of (Entering unit) to 175.00 Just wonder but mybe u need to have it be triggering units instead i really dont know if that would change anything but it might...
 
Player's handicap does that? I thought handicap was something completely different...
 
Why would you change the handicap to change the hp of one unit? That won't work... have you tried giving the unit the ITEM :P ability for hp bonus?

dArKz
 
huh...thanks for all your help guys. The handicap thing actually ended up working.
 
You could also try making an upgrade based on animal war training that affects all of reds units then when the unit enters a region u research the upgrade for player 1.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top