• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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.
 
Level 5
Joined
Jul 11, 2007
Messages
152
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:

mik

mik

Level 4
Joined
Dec 13, 2007
Messages
59
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:
 
Level 11
Joined
Aug 25, 2006
Messages
971
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.
 
Level 1
Joined
Dec 24, 2007
Messages
2
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.)))
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
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.
Top