how to make team sell?

Crusher

You can change this now in User CP.
Reaction score
121
well dota has not team sell,if leaver sells an items it automatically sells to all team ,but if you pick an item gold only goes to you...
 

Cidzero

Imma firin mah lazer!!!1!1
Reaction score
39
Shop Sharing ability is like Select Unit but only for allies of the owner of the shop. And instead of sold items, its Items Produced.
 

LiTtLe_LiOn

Active Member
Reaction score
0
I dont really understand what u guys saying...
can u guys tell me more detail about how to do it
and is it needed to have trigger??
please help~~
 

Cidzero

Imma firin mah lazer!!!1!1
Reaction score
39
Shop Sharing is an ability.

It works the same as Select Unit or Select Hero abilities, EXCEPT it only works for allies of the owner of the unit with the ability.

Also, when selling items, Shop Sharing using Items Produced instead of Items Sold when setting up what items the unit sells in the object editor.

No Triggers are Involved.
 

LiTtLe_LiOn

Active Member
Reaction score
0
I still dont get it, i cant find the stuff that change shop sharing ability make it team sell.....
can u make a tutorial for me please..?
and one more question is:
like in dota, people get gold every seconds, and when a player left, their gold will be transfer to their ally, not just the time they left, but also their ally get the gold that they earn every second, how to do it?
 

Cidzero

Imma firin mah lazer!!!1!1
Reaction score
39
Shop Sharing is already Team Sell Only...-.-

Look, play melee maps for a moment, notice the buildable shops only sell to allies, thats the Shop Sharing Ability that those buildings have, thats the ability you want. All you have to do is add that ability to your shop's normal ability list.

Gold is given to that team of players, and the gold is split up among currently playing users.
Code:
Routine Gold
    Events
        Time - Every 5.00 seconds of game time
    Conditions
    Actions
        Set PlayerGroup = (All players matching ((((Matching player) is an ally of Player 1 (Red)) Equal to True) and ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
        Player Group - Pick every player in PlayerGroup and do (Actions)
            Loop - Actions
                Player - Add (50 / (Number of players in PlayerGroup)) to (Picked player) Current gold
        Custom script:   call DestroyForce(udg_PlayerGroup)

The player's Gold will be split amongst the currently playing allied users.
Code:
Player Leaves
    Events
        Player - Player 1 (Red) leaves the game
        Player - Player 2 (Blue) leaves the game
        Player - Player 3 (Teal) leaves the game
        Player - Player 4 (Purple) leaves the game
        Player - Player 5 (Yellow) leaves the game
        Player - Player 6 (Orange) leaves the game
    Conditions
    Actions
        Set PlayerGroup = (All players matching ((((Matching player) is an ally of (Triggering player)) Equal to True) and ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
        Player Group - Pick every player in PlayerGroup and do (Actions)
            Loop - Actions
                Player - Add (((Triggering player) Current gold) / (Number of players in PlayerGroup)) to (Picked player) Current gold
        Custom script:   call DestroyForce(udg_PlayerGroup)
 

Crusher

You can change this now in User CP.
Reaction score
121
cidzero read my private message dude btw its done with triger little lion
 

LiTtLe_LiOn

Active Member
Reaction score
0
may be i havent state my first question clear enough...
what i wanna do is that when someone leave the game,
people use the leaver's hero to sell some items,
in war3 game, which unit sold the item, the gold goes to the that unit's owner
but in dota, the gold goes to their teammates...
i wanna know how to do that.....can u please help me?

and thank you for helping me on my second question=]
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top