HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help

07-24-2004, 07:42 PM#1
Zaggaroth
the creeps for example in dota...
they spawn after some time but dont spawn again untill a while after the spawned units die...


how?

and then they lose 50 gold per lvl when they die.. if their lvl 4 they lose 200...

how+
07-24-2004, 09:26 PM#2
Arohk
whit loosing gold you mean they drop coins or giving bounty when you kill them?

if you get gold for kill, you need to create 1 unit for each lvl that give a diffrent amount of gold each lvl
07-24-2004, 10:11 PM#3
Zaggaroth
i mean that if u are lvl 1 and die u lose 50 gold
if ur lvl 2 u lose 100.. lvl 3 150 etc
07-24-2004, 10:20 PM#4
dragnstitch
i believe thats like bounty something.. heros have it so depending on level it raises bounty that much .. i might be wrong
07-25-2004, 01:08 AM#5
nefariousf
Code:
Hero Loss Bounty
    Events
        Unit - A unit Dies
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Player - Add ((Hero level of (Triggering unit)) x -50) to (Owner of (Triggering unit)) Current gold
        Player - Add ((Hero level of (Triggering unit)) x 50) to (Owner of (Killing unit)) Current gold
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to (Random player from (All players controlled by a Computer player))
            Then - Actions
                Player - Add ((Hero level of (Triggering unit)) x -50) to (Owner of (Killing unit)) Current gold
            Else - Actions
                Do nothing

You only need that last action (The IF/THEN/ELSE one) if it is a problem increasing the gold of computer players.