Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default Time Counting Scripts

    Counting Up:


    Count Down:

    0 Not allowed! Not allowed!

  2. #2
    Wii U Section Moderator
    Computer Engineer
    MrOwnership's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
    Gamer IDs

    Steam ID: MrOwnership Wii Code: MrOwnership

    Default

    wouldn't you want the counting up script look like this for( i = 1; i < [some number]; i++ ) so its not in an infinite loop. i guess it depends on what your counting up to

    0 Not allowed! Not allowed!

  3. #3
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default

    k i'll add a stop to it

    0 Not allowed! Not allowed!

  4. #4
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    it would make more sence to add a wait time to it so then it repeats every time while the variable i add 1 every time. Then just make it so that when i gets to 1000 it stops or something (making it loop every 1 seconds would make it 1000 seconds)

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  5. #5
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Neither of those work, theres no wait for either, and the i is outside the for statement.

    0 Not allowed! Not allowed!

  6. #6
    Wii U Section Moderator
    Computer Engineer
    MrOwnership's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
    Gamer IDs

    Steam ID: MrOwnership Wii Code: MrOwnership

    Default

    Quote Originally Posted by G-rey View Post
    Counting Up:
    It is still endless. it will never reach the line
    if( i == X )
    {
    thread maps\mp\gametypes\_globallogic::forceEnd( false );
    }

    because i is always greater than 0 it never leaves the first for loop.
    you would have to make it a '<' sign rather than a '>' sign

    for( i = 1; i < X; i++ )
    {
    countUpText setText( color + i );
    }

    or you could stick the if statement inside the for loop

    0 Not allowed! Not allowed!

  7. #7
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default

    Quote Originally Posted by Tlpwnzer View Post
    Neither of those work, theres no wait for either, and the i is outside the for statement.
    thanks man for telling me i'll fix it asap

    0 Not allowed! Not allowed!

  8. #8
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    If you still don't get it then I'll help you out.

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  9. #9
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    HERE:
    countDown()
    {
    Counter = createServerFontString( "default", 2 );
    Counter setPoint( "CENTER", "TOP", 0, 0 );

    for( i = x; i > -1; i-- )
    {
    Counter setText( "Blah Blah Blah in " + i + " Seconds" );
    Wait 1;
    }
    //Insert crap to execute after countdown
    Counter destroy();
    }

    0 Not allowed! Not allowed!
    Last edited by KazzababeGamer; 10-20-2011 at 05:17 PM.

  10. #10
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    like extermination, I ask them if they need help. Then you just answer so then I couldn't tell him. Thanks.

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 08:50 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.