HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

SELL?!?!? for TD?!?!?

01-07-2004, 12:20 PM#1
thr34t.ech0
Could some1 Teach me how to do Sell for TD, my TD is going perfect cept i dunno how to do the Sell Trigger, some1 TEACH ME PLZ!!!
01-07-2004, 12:29 PM#2
chemo
okay create a unit which name is "sell" make every towers to be able to train this unit !

trigger sell:

E:
Unit - A unit owned by Player 1 (Red) Finishes training a unit
Unit - A unit owned by Player 2 (Blue) Finishes training a unit
Unit - A unit owned by Player 3 (Teal) Finishes training a unit
Unit - A unit owned by Player 4 (Purple) Finishes training a unit
Unit - A unit owned by Player 5 (Yellow) Finishes training a unit
Unit - A unit owned by Player 6 (Orange) Finishes training a unit
Unit - A unit owned by Player 7 (Green Finishes training a unit
Unit - A unit owned by Player 8 (Pink) Finishes training a unit

C:
(Unit-type of (Trained unit)) Equal to Sell

A:
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl

Unit - Remove (Triggering unit) from the game

Unit - Remove (Trained unit) from the game

Player - Add (Point-value of (Triggering unit)) to (Owner of (Trained unit)) Current gold

Game - Display to (Player group((Owner of (Trained unit)))) the text: (|c00FF0000Y|r|c00F0000Fo|r|c00E1001Eu|r|c00D2002D |r|c00C3003Cr|r|c00B4004Be|r|c00A5005Ac|r|c00960069e|r|c00870078i|r|c00780087v|r|c00690096e|r|c005A0 0A5d|r|c004B00B4 |r + ((String(((Integer((Real((Point-value of (Triggering unit))))))




hope that helped:D
01-07-2004, 12:40 PM#3
thr34t.ech0
man i really don't understand anything of the last action....--;;emote_sweat
01-07-2004, 12:46 PM#4
chemo
the last action just display for the selling player:

You received (gold points from sold unit)
01-07-2004, 02:26 PM#5
Phil_123
if you dont want the rally point button, use upgrades insted of unit trains.
01-07-2004, 02:57 PM#6
Shark
search for my map...i uploaded it several times, the name is shark td, it has almost everything covered u need for a TD....try searching for "need help with levels" cuz i uploaded it for that guy....

the thing is, why using "train Sell unit" when u can use "unsummon building" ability....the only thing it needs to work is to set the building race to undead....the only fault is when u upgrade the building into something, when u unsummon it, u'll get the upgrade cost back...and u can the "percentage refunded" by editing the unsummon building ability...just download the map and see what u need...
01-07-2004, 03:16 PM#7
TheZaCrew
Why make 6 events when you can use one? Generic unit finishes training a unit. And use explode unit instead of special effect.
01-07-2004, 04:14 PM#8
CHUNK
Actually, if you create an ability called "sell tower" and then use the generic unit begins casting and an ability comparison condition for your new sell tower ability, you can add a spell effect for the sell, use a trigger to remove the casting unit, point value to control the sell return rate, and you could use the same spell for all of your towers without making them 'undead' and you don't have the upgrade issue described by Shark.