wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 02-06-2007, 01:12 AM   #1
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default "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 Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














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.
Pyrogasm is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 02-06-2007, 01:17 AM   #2
Mythic Fr0st
User
 
Mythic Fr0st's Avatar
 
Join Date: Oct 2006
Posts: 82

Mythic Fr0st has little to show at this moment (4)

Send a message via MSN to Mythic Fr0st
Default

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:
Collapse Events
Time - Every 0.06 seconds
Conditions
Collapse Actions
Set X = X + 1
Trigger:
Collapse Events
Time - Every 0.27 seconds
Conditions
Collapse Actions
Set Y = Y + 1
Trigger:
Collapse Events
Player 1 red chat message containing the text -test as an exact match
Conditions
Collapse 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.
Mythic Fr0st is offline   Reply With Quote
Old 02-06-2007, 01:42 AM   #3
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

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 Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














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.
Pyrogasm is offline   Reply With Quote
Old 02-06-2007, 01:50 AM   #4
Mythic Fr0st
User
 
Mythic Fr0st's Avatar
 
Join Date: Oct 2006
Posts: 82

Mythic Fr0st has little to show at this moment (4)

Send a message via MSN to Mythic Fr0st
Default

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.
Mythic Fr0st is offline   Reply With Quote
Old 02-06-2007, 02:02 AM   #5
Feroc1ty
User
 
Join Date: Nov 2006
Posts: 304

Feroc1ty is on a distinguished road (14)

Default

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.
Feroc1ty is offline   Reply With Quote
Old 02-06-2007, 02:02 AM   #6
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

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 Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














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.
Pyrogasm is offline   Reply With Quote
Old 02-06-2007, 02:28 AM   #7
Mythic Fr0st
User
 
Mythic Fr0st's Avatar
 
Join Date: Oct 2006
Posts: 82

Mythic Fr0st has little to show at this moment (4)

Send a message via MSN to Mythic Fr0st
Default

Hehehe. :)
__________________
~The Way, The Truth, The Light, Forever In My Sight

Mythic Aeons ORPG
Completion (%)
Triggers||||||||||
Terrain ||||||||||
Doodads||||||||||
Creeps||||||||||
Heroes||||||||||
Items||||||||||
Spells||||||||||
Mythic Fr0st is offline   Reply With Quote
Old 02-06-2007, 02:52 AM   #8
wyrmlord
User
 
wyrmlord's Avatar
 
Join Date: Feb 2006
Posts: 399

Submissions (2)

wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)

Default

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.
Collapse 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.
wyrmlord is offline   Reply With Quote
Old 02-06-2007, 02:54 AM   #9
Mythic Fr0st
User
 
Mythic Fr0st's Avatar
 
Join Date: Oct 2006
Posts: 82

Mythic Fr0st has little to show at this moment (4)

Send a message via MSN to Mythic Fr0st
Default

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.
Mythic Fr0st is offline   Reply With Quote
Old 02-06-2007, 04:43 AM   #10
Jazradel
Superuser
 
Jazradel's Avatar
 
Join Date: Dec 2005
Posts: 651

Submissions (1)

Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)Jazradel has a spectacular aura about (110)

Send a message via AIM to Jazradel Send a message via MSN to Jazradel
Default

I think 0.27 is the time, BJ_POLLED_WAIT_INTERVAL is used in this:
Collapse 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.
Jazradel is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services