PDA

View Full Version : Millisecond problem SOLVED!


TheHollow
05-14-2006, 8:23 PM
Well I had posted a thread pertaining to me having some trouble with milliseconds and Vespene gas on my map because what I wanted was 1 Vespene gas added to the players resource amount every second.

What I did to solve this problem was made the trigger as follows. . .

Players: - The Heroes (players 1, 2, 3, 4 and 5 )
Condition: - Always
Action: - Modify resources for Player The Heroes:Add 1 Vespene Gas
Action: 2 - Preserve Trigger

All I did was remove any "wait" time and the game automatically adds one Vespene gas per second.

This add's one Vespene gas per second for anyone who is in need of this information in their own future map making conquest.

- TheHollow

Hotshot
05-14-2006, 9:11 PM
Yes... I suggested this solution in your 'Millisecond problems (http://www.warboards.org/showthread.php?t=17050)' thread :confused:.
Well here's a quick solution. Probibly not exactly what you wanted, but it works. The 'preserve trigger' event takes time, so it won't go at 10 milliseconds, but will 1 second do?

Did you try the solution map I posted earlier? That works 1 gas per second.
Hang on, I thought you wanted it 10 milliseconds (1/100 of a second) instead of 1 second? This solution (map attachment) was also added to the thread.
Also, this thread could have been added to the bottom of the original instead of becoming a new one...

TheHollow
05-14-2006, 9:16 PM
I did but after i couldnt get the time to work for some reason and playing around with it in beta 10 seconds was too long so 1 gas for 1 second worked out fairly well.

Hotshot
05-14-2006, 9:25 PM
I did but after i couldnt get the time to work for some reason and playing around with it in beta 10 seconds was too long so 1 gas for 1 second worked out fairly well.
10 seconds? 10 milliseconds is one hundreth of a second, or 100 times a second. The final solution I posted works at about 2-3 times a second if that is any better.

frazz
05-14-2006, 9:45 PM
If you use hyper triggers, you wil have almost no wait in between triggers.
If you use them, you can place "wait 1000 milliseconds" in your map. Otherwise, you will have to assume to wait 1 second even if you don't want to.

Hotshot
05-14-2006, 10:23 PM
If you use hyper triggers, you wil have almost no wait in between triggers.
If you use them, you can place "wait 1000 milliseconds" in your map. Otherwise, you will have to assume to wait 1 second even if you don't want to.
We've been through this in 'Millisecond problems (http://www.warboards.org/showthread.php?t=17050)'.
My final solution uses hyper triggers anyway.
Problem solved; I believe this is the result (or near enough) that you wanted. It uses Hyper triggers. Too easy.

U-238
05-14-2006, 11:15 PM
Huh, lol. Too bad I didn't see that thread sooner. I could've settled it all for you. I've known that for awhile. :/