HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A sell button question

06-24-2004, 10:29 PM#1
RaGiNsOuLz
Hey, I'm creating a map and I'm having alot of difficulty getting my Sell button to work, I've created a unit named sell, blah blah and my trigger for it looks like this..
Sell
Events
Unit - A unit owned by Player 1 (Red) Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to Sell
Actions
Player - Add ((Point-value of (Picked unit)) / 2) to (Owner of (Triggering unit)) Current gold
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Weapons\Mortar\ScatterShotTarget.mdl
Unit - Remove (Trained unit) from the game
Unit - Explode (Triggering unit)

Anyways, when I hit the sell button it gives back 100% + gold, for example on a 10 gold tower it returns 48 gold(with correct unit point values), I have absolutely no clue why this is happening, I've searched on the forums for answers and I just can't seem to figure it out, if anyone can help me I'd greatly appreciate it. thank you!
06-24-2004, 10:50 PM#2
Vexorian
1) why to use a unit for that? you could use an ability.
2) Point value?

3) Well this is my sell button method, make constructions have undead as race then when someone casts the Sell Tower ability make a hidden caster cast your custom unsummon skill on the Casting unit
06-24-2004, 11:01 PM#3
RaGiNsOuLz
Thank you vexorian for replying so fast, I'll def. try that :8
06-25-2004, 02:55 AM#4
logik
also you had a "picked unit" selection event... when you havent picked any unit...

try "sold unit"...
06-25-2004, 03:19 PM#5
th15
The correct event response would have been "Training unit" NOT "Picked unit" or "Triggering unit".

ALWAYS use the right event response if you want your triggers to work. Trigger unit works okay for most events but it really screws up on some events so just get the damn event responses right the first time.

If you aren't sure which event response to use, the events have a little description in grey text that describes how to use it.