HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can you set the amount of gold a player has as an integer variable?

02-22-2005, 12:29 AM#1
Panzer_Fusion
I am trying to make a banking system in one of my maps, and I was looking in the triggers for one that would set the resources as a variable. I found one that would allow me to "cash in" i.e. set the amount equal to a variable, but I can't find one for the reverse. Am I just blind?
02-22-2005, 02:14 AM#2
Nieffed
I looked into it and could not find any variables that would cache the amount of gold a player has, sorry.
02-22-2005, 03:19 AM#3
johnfn
Quote:
Originally Posted by Nieffed
I looked into it and could not find any variables that would cache the amount of gold a player has, sorry.
Erm, well, I could.

Set GoldOfPlayer1 = (Player 1 (Red) Current gold)
02-22-2005, 11:45 AM#4
Panzer_Fusion
Hmmmm... this might be bad for my map. Are you sure? It seems like Blizzard would have put in a trigger for that. So there are no triggers that allow you to modify a player's resources? I seem to remember triggers like that in starcraft, and it wouldn't make sense to remove a trigger like that... Hmm... thank you for looking though.
02-22-2005, 12:35 PM#5
logik
i made a bank system that replaces the wood, and gets a increment of 10% every minute...

can be easly altered... if you want i can post it here?
02-22-2005, 01:08 PM#6
Kamux
Use the "Player - Set property" action.

example:
Set cach_variable = 400
Player - Set Player 1 (Red) Current gold to cach_variable
02-22-2005, 10:28 PM#7
Panzer_Fusion
Quote:
Originally Posted by Kamux
Use the "Player - Set property" action.

example:
Set cach_variable = 400
Player - Set Player 1 (Red) Current gold to cach_variable


Yes. I understand how to do that. What I am looking for is the reverse, i.e. set cach_variable equal to Player 1 Current gold. And I can't figure out how. It isn't under set variable. (but don't quote me on that)

And the banking system might be good, I'll try it, but I don't want interest so that's okay.r
02-23-2005, 12:06 AM#8
Raptor--
Example:

Set MAP_nRandom = (Player 1 (Red) Current gold)
02-23-2005, 01:24 AM#9
Panzer_Fusion
Never mind people, I found it. Under Player - properties is a player current gold value. Thanks anyway though! You may now let this thread slowly die...
02-23-2005, 07:54 AM#10
logik
OR FOREVER BUMP IT AND ALLOW IT TO LIVE ON!!! LIVE ON I SAY!!!!

MWAHAHAHAHAHAHAHA



im done, looks like i dont need to post the thing... oh well, goodluck