Results 1 to 3 of 3
  1. #1
    Oh Noez Batman ChelseaGrin's Avatar

    Badge

    Join Date
    Aug 2011
    Location
    I am Become Death, the Destroyer of Worlds
    Posts
    1,456
    Points
    353
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    I am Become Death, the Destroyer of Worlds
    Posts
    1,456
    Points
    353
    Gamer IDs

    PSN ID: byRexehh

    Question [HELP] (SC7E52) How do I make this script ongoing?

    Alright, I'm using this script for my new game type, and I want it to keep repeating the whole game. Am I doing this correctly?
    I've made this script and tested it, so I know it works. It only started at the beginning (I accidentally used "break;") and its meant to be used the whole game.

    (im very new to making scripts, don't judge)

    So I'm wondering if it would work this way instead:

    Code:
    EndIfLastPlayer()
    {
    	for(;;)
    	{
    		wait 1.0;
    		if( level.playerCount["axis"] == 1 )
    		{
    			wait 2.0;
    			self iPrintlnBold("Survivalists Have Survived Successfully. Game Ending..");
    			wait 3.0;
    			thread maps\mp\gametypes\_globallogic::forceEnd( true );
                            wait 2.5;
    		}
    	}
    }
    Thanks!

    0 Not allowed! Not allowed!
    Last edited by ChelseaGrin; 10-21-2013 at 01:27 PM.





  2. #2
    Wii Coder
    ChumLee's Avatar

    Badge

    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,390
    Points
    7,613
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,390
    Points
    7,613
    Gamer IDs

    Gamertag: TERR0Rx9

    Contact info:

    Youtube Channel: http://www.youtube.com/user/HAXZingTERR0R

    Default

    Well since you have an ongoing loop, it should never stop until the game is over.

    0 Not allowed! Not allowed!


  3. #3
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

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

    Default

    Quote Originally Posted by Classic View Post
    Alright, I'm using this script for my new game type, and I want it to keep repeating the whole game. Am I doing this correctly?
    I've made this script and tested it, so I know it works. It only started at the beginning (I accidentally used "break;") and its meant to be used the whole game.

    (im very new to making scripts, don't judge)

    So I'm wondering if it would work this way instead:

    Code:
    EndIfLastPlayer()
    {
    	for(;;)
    	{
    		wait 1.0;
    		if( level.playerCount["axis"] == 1 )
    		{
    			wait 2.0;
    			self iPrintlnBold("Survivalists Have Survived Successfully. Game Ending..");
    			wait 3.0;
    			thread maps\mp\gametypes\_globallogic::forceEnd( true );
                            wait 2.5;
    		}
                    wait 0.1;
    	}
    }

    Thanks!
    That's really all you need for it to loop.

    0 Not allowed! Not allowed!


    PS4 Profile:

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 03:56 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.