HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with Resource Event PLEASE!

03-06-2004, 12:22 AM#1
neenja
Is there any way to make an event that is "player X gets wood or gold"?

thanks, this is really important!!
03-06-2004, 12:26 AM#2
Transcendence
The only thing I could think of is using Player Properties
Code:
Player - Player 1 (Red)'s Current gold becomes Greater than or equal to 2.00
03-06-2004, 12:30 AM#3
neenja
but i want it so that if it goes up or down it changes, so it would have to be like, gold becomes not equal to what it currently is? how would i do that? i dont see any option like that either..
03-06-2004, 03:32 AM#4
Zethiros
Sure there is. ;)
Let me open the editor and create an example for you.

The right picture shows how to make the player get more gold.
You have to make it an Arithmetic function, then change the first reddened out value to "Player - Property", and the second value to whatever number of gold/wood you want to add.
Or, if you just want it to set it to a specific number, you can do what the left picture shows.

However, it's all in
Player - Set Property
03-06-2004, 04:11 AM#5
LegolasArcher
Hes asking how to tell when a player gains or looses gold, not how to give it to him.
03-06-2004, 07:38 AM#6
neenja
Found solution, thanks anyway guys
03-08-2004, 12:26 AM#7
Zethiros
No problem. ;)
03-08-2004, 01:46 AM#8
ThyFlame
For those who wish an answer...


Store gold/lumber into variables, do a periodic event.
every 10 seconds if current gold on p1 < gold, add/set X gold


Fairly simple.
03-08-2004, 01:40 PM#9
Soultaker
Quote:
Originally Posted by neenja
Is there any way to make an event that is "player X gets wood or gold"?

thanks, this is really important!!

Yes there is:

add action called "Player Property" and add the number to either gold or lumber
03-08-2004, 10:12 PM#10
neenja
Almost, instead I just did E: Player X Gold not equal to real(player X (current gold))

same with wood...if thats what you were saying, gj!