Wc3C.net "Every X seconds of game-time"
 Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar

02-06-2007, 01:12 AM   #1
Pyrogasm

Respected User

Join Date: Sep 2006
Posts: 4,523

Submissions (9)

"Every X seconds of game-time"

I know that TriggerSleepAction() has a minmum time of 0.10 seconds or something like that. Does that minimum time apply to triggers that run "Every X seconds of game-time"?

If, for instance, I used this event:
Trigger:
Time - Every 0.06 seconds of game-time
Would it actually run only every 0.1 seconds (or whatever the minium time)?
__________________
Quote:
 Originally posted by Rising_Dusk Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request ThreadDone for, unless someone else wants to revive it...
It lasted a damn long time.

Quote:
 Originally posted by Kyrbi0 Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
 Originally posted by Pyrogasm Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.

 02-06-2007, 01:17 AM #2 Mythic Fr0st User     Join Date: Oct 2006 Posts: 82 Time - Every 0.06 seconds of game-time Runs every 0.06 Seconds call PolledWait() and TriggerSleepAction() wait atleast 0.27 seconds give or take a few 0.01's so no I dont belive it does effect it to test Trigger: Events Time - Every 0.06 seconds Conditions Actions Set X = X + 1 Trigger: Events Time - Every 0.27 seconds Conditions Actions Set Y = Y + 1 Trigger: Events Player 1 red chat message containing the text -test as an exact match Conditions Actions Game - Display to all players the text X + " Vs " + y __________________ ~The Way, The Truth, The Light, Forever In My Sight Mythic Aeons ORPG Completion (%) Triggers|||||||||| Terrain |||||||||| Doodads|||||||||| Creeps|||||||||| Heroes|||||||||| Items|||||||||| Spells|||||||||| Last edited by Mythic Fr0st : 02-06-2007 at 01:18 AM.
02-06-2007, 01:42 AM   #3
Pyrogasm

Respected User

Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Why thank you, Mythic Fr0st. They do indeed run at different intervals. Rep'd!
__________________
Quote:
 Originally posted by Rising_Dusk Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request ThreadDone for, unless someone else wants to revive it...
It lasted a damn long time.

Quote:
 Originally posted by Kyrbi0 Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
 Originally posted by Pyrogasm Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.

 02-06-2007, 01:50 AM #4 Mythic Fr0st User     Join Date: Oct 2006 Posts: 82 Hmm, Thanks Mr Grammer. I guess I must talk perfectly now lol. (Feel's his typing being watched) I've never been +repped on here before lol Darn, my grammer still is horrible lol __________________ ~The Way, The Truth, The Light, Forever In My Sight Mythic Aeons ORPG Completion (%) Triggers|||||||||| Terrain |||||||||| Doodads|||||||||| Creeps|||||||||| Heroes|||||||||| Items|||||||||| Spells|||||||||| Last edited by Mythic Fr0st : 02-06-2007 at 01:52 AM.
 02-06-2007, 02:02 AM #5 Feroc1ty User   Join Date: Nov 2006 Posts: 304 Yes, it does not apply because the trigger actually creates a repeating timer, which calls back to the function you have made in that trigger.
02-06-2007, 02:02 AM   #6
Pyrogasm

Respected User

Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Spam.

That it is. It's rather atrocious; but at least you're better than:
Quote:
 WOAH! stuffz c4n b3 MUI w1t LOCALS!!!

Oh, and I have a tendancy to rep people for being nice and all that jazz, you know.

Just look at Jokes-On-You's public profile:
Quote:
 Originally Posted by Me Gotta rep you for using good grammar and punctuation...
__________________
Quote:
 Originally posted by Rising_Dusk Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request ThreadDone for, unless someone else wants to revive it...
It lasted a damn long time.

Quote:
 Originally posted by Kyrbi0 Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
 Originally posted by Pyrogasm Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.

Last edited by Pyrogasm : 02-06-2007 at 02:03 AM.

 02-06-2007, 02:28 AM #7 Mythic Fr0st User     Join Date: Oct 2006 Posts: 82 Hehehe. :) __________________ ~The Way, The Truth, The Light, Forever In My Sight Mythic Aeons ORPG Completion (%) Triggers|||||||||| Terrain |||||||||| Doodads|||||||||| Creeps|||||||||| Heroes|||||||||| Items|||||||||| Spells||||||||||
 02-06-2007, 02:52 AM #8 wyrmlord User     Join Date: Feb 2006 Posts: 399 Submissions (2) Mystic Fr0st seemed to cover everything. However, I believe I was told the minimum wait time was around 0.10 seconds and not .27. I'll have to double check to be sure. EDIT: I believe this defines the minimum wait time. JASS:`constant real bj_POLLED_WAIT_INTERVAL = 0.10` __________________ A member of Clan TDG - Quality mapmaking and playtesting. Tired of boring old GUI? Want to learn JASS? Take a look at these tutorials. Last edited by wyrmlord : 02-06-2007 at 02:53 AM.
 02-06-2007, 02:54 AM #9 Mythic Fr0st User     Join Date: Oct 2006 Posts: 82 Hmm, either way, I was told 0.27, but either way, its a sad 'extra" amount of wait time:( Your probably right __________________ ~The Way, The Truth, The Light, Forever In My Sight Mythic Aeons ORPG Completion (%) Triggers|||||||||| Terrain |||||||||| Doodads|||||||||| Creeps|||||||||| Heroes|||||||||| Items|||||||||| Spells|||||||||| Last edited by Mythic Fr0st : 02-06-2007 at 02:55 AM.
02-06-2007, 04:43 AM   #10
Superuser

Join Date: Dec 2005
Posts: 651

Submissions (1)

I think 0.27 is the time, BJ_POLLED_WAIT_INTERVAL is used in this:
JASS:
```function PolledWait takes real duration returns nothing
local timer t
local real  timeRemaining

if (duration > 0) then
set t = CreateTimer()
call TimerStart(t, duration, false, null)
loop
set timeRemaining = TimerGetRemaining(t)
exitwhen timeRemaining <= 0

// If we have a bit of time left, skip past 10% of the remaining
// duration instead of checking every interval, to minimize the
// polling on long waits.
if (timeRemaining > bj_POLLED_WAIT_SKIP_THRESHOLD) then
call TriggerSleepAction(0.1 * timeRemaining)
else
call TriggerSleepAction(bj_POLLED_WAIT_INTERVAL)
endif
endloop
call DestroyTimer(t)
endif
endfunction```
__________________

Table:
 Jump Map Point System Warcraft III Model Archive W3 Model Archive should be available from https://www.mediafire.com/folder/cd5..._III_Resources, PM me if it doesn't work.

Last edited by Jazradel : 02-06-2007 at 04:44 AM.

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off

All times are GMT. The time now is 08:56 PM.

 -- Night Elf -- Tauren -- Troll -- Pandaren -- Underworld -- Blood Elf -- Northrend -- Lightning ---- Light-ning -- Arcane -- Diablo III -- Protoss -- Mobile Version Wc3campaigns - Archive - Top

 Affiliates