HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Plz save me a couple days of excruciating boredom!!

07-20-2003, 09:15 PM#1
Cronanius
Can I plz get some help on how to do a trigger? It should be a lot easier than it is, and probably has to do with the interger actions but it's causing me a serious headache and if i have 2 figure it out myself that'll b probably a couple days wasted.

I need 2 know how i can get player 5 (yellow) to distribute his gold evenly among players 1-4 (Variable "Team1") every 5 mins.

I have a timer done up to expire every 5 mins to serve this purpose, I just need to know wat trigger to use [and probably] how to use it, especially if it is an interger trig.
07-20-2003, 09:21 PM#2
wiebbe
Divide Money player 5

Events
Time - Every 300.00 seconds of game time
Conditions
None
Actions
Player Group - Pick every player in Team1 and do (Player - Add ((Player 5 (Yellow) Current gold) / 4) to (Picked player) Current gold)
Player - Set Player 5 (Yellow) Current gold to 0

you could change the divide numer to a diffrent number like, numer of players in player group team 1 or something, to distribute is all when there are less the 4 players.

but is this really what you want? its a very simple trigger.
07-20-2003, 09:27 PM#3
Cronanius
ya im a real dipstick sometimes... i had never realized add could b n e thing other than a number, not a player's gold lol! woulda taken me days to figure that 1 out, i was trying to get interger variable blah blah crap 2 work 4 me :bgrun: thx a pile :ggani: