HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Change Max HP

10-12-2003, 01:42 AM#1
theyellowdart
i'm trying to make it so if a player has a unit 1000 is added to a certain building max hp. so far i have:

Quote:
Red
Events
Unit - Training Facility 0430 <gen> Finishes training a unit
Conditions
(Trained unit-type) Equal to Castle Watchman
Actions

that doesnt really matter though, im not sure how to change a building max hp...if anyone knows how to do it plaese help. if not i guess ill make it so the building can upgrade. (i didnt want to have the building upgrade because it is refferred to in some triggers as "Castlexxx <gen>" but if an upgrade is needed, i can change the castle into a variable.)
10-12-2003, 03:12 AM#2
AllPainful
Make an Upgrade that gives +1000 hitpoints, and then edit the Castle so that the upgrade effects the castle. Then the "actions" in your trigger would be "Set upgrade status of upgrade(CastleHP) equal to researched".

If you make it a researched upgrade, not a unit upgrade ("Black Gunpowder" is an example of a researched upgrade, it upgrades attack damage of some units, but DOESN'T change the unit, so it can still be refered to in triggers.)

EDIT:
For more clarity.
Make the upgrade on the Upgrades tab of the editor.

The field labled "Techtree - Upgrades used" is where you want to put the upgrade.

The field labled "Techtree - Upgrades to" is the field you want to AVOID.
10-12-2003, 10:22 AM#3
theyellowdart
that makes sense, but how do i create a new upgrade? the upgrades tab appears to only allow me to enable/disable the games upgrades...
10-12-2003, 10:28 AM#4
AllPainful
Are you using TFT?

If not, then I can't help you, sorry...

If you are, the upgrades tab I was refering to is in the Object Editor.
10-12-2003, 10:45 AM#5
theyellowdart
curses! i dont want to pay $40 for an expansion (even though i can probably get it for cheaper than that)

oh well...sucks for me.
10-12-2003, 12:28 PM#6
Grater
You could probably use a little trick with handicaps. It goes something like this:
Set neutral victim handicap to 100%
Give the castle to neutral victim
Set neutral victim handicap to 150%
Give castle back to original owner

This should give the castle extra HP.... you'll need to figure out exactly what value to use instead of 150%.