• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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