• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Sell Function

Status
Not open for further replies.
Level 5
Joined
Nov 14, 2008
Messages
119
How do i do a sell trigger?
Currently i've a "sell" trigger.
But it only sells for 75% of the first tower gold.

My tower is upgradable e.g you can upgrade 5 times,the total gold for upgrading 5 times is 500gold.But when i use the sell trigger it only sells for 15 gold.Which is 75% of how much the first tower cost.

+rep to anyone who can help!Thanks in advance.
 
Edit:Okay
Event->Player 1 red finishes training a unit.
Conditions->Trained unit equal to Sell.
Actions->Special Effect,
->Remove trained unit from the game.
->Remove triggering unit from the game.
->Add point-value for triggering unit to owner of trained unit current gold.
->Display to the owner of player group,owner of house,you recieved (string((point-value of triggering unit.<and the behind is the text>
 
Last edited:
See the 'Add Point Value' Trigger? That there is your problem
Because you no doubt copied the lvl 2 tower from the lvl 1 tower, the point value (a value in the Object Editor) is the same for all the units. (which is 15). Just change the Unit's Point value in the Object editor to 75% of the upgrading cost.
 
Status
Not open for further replies.
Back
Top