Purchasing item

Rainther

I guess I should write something of value here...
Reaction score
61
The solution is probably very simple; anyways here goes. I create an unit (non-building) that can sell items. If I make it my own team I can buy items, but they're dropped to the ground. I tried to make a trigger with unit sells item give item to unit thingie, but it failed.
So either: what player do I need to declare in order for me to buy items normally? Neutral passive doesn't seem to do the trick;
or what event and action is needed to give bought item to certain unit.

My unit isn't a hero; is that a problem?
 

Skippy

Active Member
Reaction score
39
Post here your trigger, to see what is wrong.
Btw: have your shop ability Select Unit?
 

Rainther

I guess I should write something of value here...
Reaction score
61
Not much to show, really:
Trigger:
  • Unit - A unit Sells an item (from shop)
    • Hero - Give (Sold Item) to Declared Unit


Adding Select Unit didn't do the trick
 

Rainther

I guess I should write something of value here...
Reaction score
61
Well I'm not using the item, just handing it over..
 

Silver

New Member
Reaction score
21
There's a Unit - Shop Share or Shop - Shared or something like that somewhere in the object editor which should be set to true.
 

Rainther

I guess I should write something of value here...
Reaction score
61
Can't find it, feel free to gimme a screenie.
 

Kahem

New Member
Reaction score
2
hey dude
i think what you do is go to the shop, check the box that says "Stats - Is a Building" then put the items you want to sell in the "Techtree - Items Made" (not items sold!) and then recheck the "Stats - Is a Building" to make it a unit again. the "Techtree - Items Made" will disapear from the object editor but in game the unit shop still sells the items.
hope that is what your after
 

Rainther

I guess I should write something of value here...
Reaction score
61
hey dude
i think what you do is go to the shop, check the box that says "Stats - Is a Building" then put the items you want to sell in the "Techtree - Items Made" (not items sold!) and then recheck the "Stats - Is a Building" to make it a unit again. the "Techtree - Items Made" will disapear from the object editor but in game the unit shop still sells the items.
hope that is what your after

Awesome! :D It did the trick!
 
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