Allow units to be sold by trigger

Arberden

Active Member
Reaction score
0
Hi,I just want to ask if i can use a trigger to allow the training of units using trigger and not in object editor.For example, for a tavern in the units sold in object editor is blank put allow the selling of heros using trigger.

Another question.If i want a spell damage to be based on his stats how do i do it.For example, when he cast this spell, it will add his strength ,agility and intelence and damage that amount.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Neutral Building - Add Unit-Type (To Marketplace):
Neutral Building - Add <unit> to <tavern> with # in stock and a max stock of #

Unit - Damage Target:
Unit - Cause <unit> to damage <unit>, dealing # damage of attack type <atktype> and damage type <dmgtype>

For the damage, you'll just have to use some arithmetic, with some integer to real's.
 

Arberden

Active Member
Reaction score
0
For the adding units, if i want to sell units from another unit how do i do it as add unit-type to marketplace is only for buildings.

For the damage for the second unit should i use targeted unit?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
A unit sellings units?
That would have to most likely be triggered..

Or just change the model file of a building to a unit.
 

Arberden

Active Member
Reaction score
0
I tried in the object editor under the units sold and it is possible to sell a unit but how do i do it using triggers.

And i want the unit to be able to move not a building
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Try Night Elf buildings then, with a different model.
Or a unit with a building model, if units can sell units.

Why do the units need to be sold via triggers though?
Why can't they just be sold the normal way?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
How did you solve your problem?
Just wondering, and so people that find this thread can see how it was solved.
 

Arberden

Active Member
Reaction score
0
I was doing a sort of hero selection system and wanted the pick and random button to be selling units but after selling them i cant remove it. So it would be like people playing with the pick this hero and random hero button still around. So i did a If,Then,Else for each hero when they choose and replace all heros with a duplicate without the pick and random buttons.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top