HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Selll button

06-16-2003, 09:43 PM#1
Earth_Mage
I just wanted to know how to make a sell button or sell command for a tower d. I have been trying to make one but a dont know how. Any help would be appreciated.
06-16-2003, 09:47 PM#2
chemo
a -sell button is a trained unit, which interface icon look like a "money bag" and its name is sell...

when the unit is created the trained unit and the tower it has been trained from is removed.

the money u get is the point value which indicate the gold the current player will have...

if this sounds pretty hard then open WintherMaul....

its more easy when u are looking at triggers!'
06-16-2003, 09:49 PM#3
Draco
Kinda like how the undead can un-summon a building and get money back?
06-16-2003, 10:44 PM#4
darklordcypher
You create some sort of unit. Make it cost 0 gold and put whatever icon you want to represent the sell button. Make a trigger:

Event-unit is trained
condition-unit equal to "sell button unit"(not sure if u need a condition, you might be able to just have the unit in the event)
Action-remove trained/triggering unit
-player-add property- add (gold for selling) to owner of triggering units current gold

thats about all. 8)
06-16-2003, 11:31 PM#5
Earth_Mage
Thanks guys
06-16-2003, 11:54 PM#6
Earth_Mage
Wait, one more question. When I do the player-add proptery action, how would I make it give half the cost of the tower back.
06-17-2003, 12:00 AM#7
Earth_Mage
Shoot, I still am not able make the trigger work. Could someone explain it in detail, including all the triggers, events,conditions, and actions I need, and how to make them. Because some of the events,conditions, or actions you listed, do not exist, or I cant find them or make them

sry for the complication.
06-17-2003, 08:37 AM#8
Dead-Inside
Okay,
E: A unit is trained
C: Trained unit equal to "Sell"
A: Set (owner of (traning unit)) gold = (Owner of (Traning unit)) current gold + point valvue of (traning unit)
Remove trained unit from the game
- May add special effect here -
- Game message can be added here -, like so "You sold a (unit-type name of traning unit) for (point valvue of traning unit)"
Remove traning unit from the game

The point valvue is set in the editor. It is standard 100 for all units, but can be edited. You should count it on 70% of the original price or something like that. So if the price of the tower was 100, the point valvue would be 70.

This is the easiest and best way to do it.

Regards
Dead-Inside
06-17-2003, 09:50 AM#9
leppy
hm thats pretty dandy. hey darklordcypher you do know that vamp (your avatar) is bisexual right? 0_o

...er, that is vamp from MGS:2... right? :////
06-17-2003, 10:04 AM#10
Mech-Sheep
Yes, it's that guy who got shot in the head and didn't die.

I'm going to bookmark this page. It might be handy when I do my TD map :D
06-17-2003, 04:53 PM#11
lordwiggin
u could just give your biulder unsommon......... alot easierand if u wanna change the perent just open up your nive abilitydat.slk and undeadstrings and fun .txts
06-17-2003, 05:12 PM#12
Earth_Mage
Ok, thanks guys:D