• 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.

use neutral buildings with shared resources

Status
Not open for further replies.
Level 14
Joined
Nov 25, 2004
Messages
1,185
assume:

player 1 has few units and shared control with player 2
player 2 has no units, he just controls player 1's units

player1 has base, money etc
player 2 uses player 1 resources

now if player 2 comes to goblin shop/lab whatever, he can't buy items for player 1 because he has no money.

is there some way to make goblin lab take money from the owner of buying unit, instead of buying player?
 
Level 12
Joined
Mar 16, 2006
Messages
992
assume:

player 1 has few units and shared control with player 2
player 2 has no units, he just controls player 1's units

player1 has base, money etc
player 2 uses player 1 resources

now if player 2 comes to goblin shop/lab whatever, he can't buy items for player 1 because he has no money.

is there some way to make goblin lab take money from the owner of buying unit, instead of buying player?

You would have to script a trigger that checked both players money. if player 2 didnt have enough money, or the trigger was toggled on, it would check player 1's money and give you the item and remove gold from him.

It'd be much more troublesome, since you'd probably have to trigger all your items that way. Unless there's a system you could use for it, that is.

Change the tooltip to reflect the gold amount required, and then make it cost nothing. If user1 has the gold to purchase it, add -gold to user1. If user1 does not have enough, destroy <item> and display error message. For all players or just player 2.
 
Status
Not open for further replies.
Top