HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need help with a trigger

06-14-2004, 03:59 AM#1
GellingFellan
(im sorry for bothering anyone with this seemingly simple trigger, but I can't figure out how to make it work, because im a novice.)

I want to make a trigger that gives all players "10" gold and "5" lumber every "5" seconds.

For example, in DOTA every player gets some gold every few seconds, thats what i need.

Thanks for ur time :D
06-14-2004, 05:27 AM#2
Bulletcatcher
Quote:
Originally Posted by GellingFellan
(im sorry for bothering anyone with this seemingly simple trigger, but I can't figure out how to make it work, because im a novice.)

I want to make a trigger that gives all players "10" gold and "5" lumber every "5" seconds.

For example, in DOTA every player gets some gold every few seconds, thats what i need.

Thanks for ur time :D

First, this should be in the triggering forum, but I'll be nice and answer anyway.
Code:
    Events
        Time - Every 5.00 seconds of game time
    Conditions
    Actions
        Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
            Loop - Actions
                Player - Add 10 to (Picked player) Current gold
                Player - Add 5 to (Picked player) Current lumber
06-14-2004, 08:57 PM#3
GellingFellan
doh, sorry, ill try to keep my questions in the correct category from now on :o

thanks a lot bulletcatcher, it works great! :D