• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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