3 questions

Status
Not open for further replies.

mik

mik

Level 4
Joined
Dec 13, 2007
Messages
59
hey yall. im almost done with the beta of my tower defense map, but i still havn't got 2 minor things work.

1. building colors

is there a way to make buildings with team color parts have a certain color, no matter who controls them?

2. selling trigger

my selling trigger returns gold using the point value option

player - add (point value of (triggering unit)) to (owner of (triggering unit) gold.

is there a similar way to return wood?



thanks a lot,
mik


edit:
only 2 questions now, i just solved a problem myself.
 
1. I think what you mean is possible and in unit editor there should be an option similar to "Obeys team colors" that should be able to be toggled.
Also there is an art option that can change the color depending on the red/blue/green ratio.

2. You should be able to do the same thing with lumber via the add property trigger and using similar details based on the condition and unit.
 
Last edited:
thanks, 1 is solved.

but 2.?

there doesnt seem to be a trigger which counts wood cost instead of point-value, so i dont know how to do it.

sure i could do it with a bunch of if/else triggers which find out which building was sold, then set the custom point-value to its wood cost and return that. but thats annoying :thumbs_down:
 
I had a crazy idea for selling.
You could set the bounty of the building to the buildings gold/lumber values. Then when they press the sell button you change the building to neutral hostile. Finally you use Unit Damage Target Unit, to kill the building and get the bounty.
 
I Changed the point values of my units and then did:

Code:
sell
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Sell 
    Actions
        Player - Add (Integer(((Real((Point-value of (Triggering unit)))) x 0.75))) to (Owner of (Triggering unit)) Current gold
        Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
        Unit - Remove (Triggering unit) from the game
        Game - Display to (Player group((Owner of (Triggering unit)))) the text: (((You received  + gold_color) + (String(((Real((Point-value of (Triggering unit)))) x 0.75)))) + (|r for selling a|cffffffff + ((String((Unit-type of (Triggering unit)))) + |r.)))
 
I had a crazy idea for selling.
You could set the bounty of the building to the buildings gold/lumber values. Then when they press the sell button you change the building to neutral hostile. Finally you use Unit Damage Target Unit, to kill the building and get the bounty.

WHOAAA
You are super 1337
 
Status
Not open for further replies.
Back
Top