Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  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

    Default [SC7E52[RELEASE]Mod Menu Help Script

    A really easy script i just coded:
    Code:
    Help()
    {
    	self waittill ( "grenade_pullback" );
    	Help self createFontString( "objective", 2.7 );
    	Help setPoint( "CENTER", "CENTER", 0, 0 );
    	Help setText( "Crouch and Press [{+melee}] to Open Menu" );
            HelpRemove setPoint( "LEFT", "LEFT",9, 7 + 30 ); 
    	HelpRemove setText( "Press [{+use}] to Remove this text" );
            if( player self UseButtonPressed() == true )
            {
            Help destroy();
            HelpRemove destroy();
            }
    }
    What it does is when a player throws a grenade it gives them Help on opening the menu.
    Fixed.

    or you can use this:
    Code:
    Help()
    {
    	self waittill ( "grenade_pullback" );
    	Help self createFontString( "objective", 2.7 );
    	Help setPoint( "CENTER", "CENTER", 0, 0 );
    	HelpTwo self createFontString( "objective", 2.7 );
    	HelpTwo setPoint( "CENTER", "BOTTOM", 0, 0 );
    	Help setText( "Crouch and Press [{+melee}] to Open Menu" );
    	HelpTwo setText( "Press [{+use}] to Remove this text" );
            if( player self UseButtonPressed() == true )
            {
            Help destroy();
    	HelpTwo destroy();
            }
    }
    ^This is a little neater with the remove text running at the bottom

    0 Not allowed! Not allowed!
    Last edited by ChelseaGrin; 06-08-2012 at 03:05 AM.





  2. #2
    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

    the text on that is going to stack up on eachother

    0 Not allowed! Not allowed!

  3. #3
    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

    Default

    Quote Originally Posted by G-rey View Post
    the text on that is going to stack up on eachother
    oh yeah i'll move it thanks.

    Fixed the Position of the remover.

    0 Not allowed! Not allowed!





  4. #4
    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

    it'd be more like this

    Code:
    Help()
    {
    	self waittill ( "grenade_pullback" );
    	Help self createFontString( "objective", 2.7 );
    	Help setPoint( "CENTER", "CENTER", 0, 0 );
    	HelpTwo self createFontString( "objective", 2.7 );
    	HelpTwo setPoint( "CENTER", "BOTTOM", 0, 0 );
    	Help setText( "Crouch and Press [{+melee}] to Open Menu" );
    	HelpTwo setText( "Press [{+use}] to Remove this text" );
            if( player self UseButtonPressed() == true )
            {
            Help destroy();
    	HelpTwo destroy();
            }
    }

    0 Not allowed! Not allowed!

  5. #5
    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

    Default

    Quote Originally Posted by G-rey View Post
    it'd be more like this

    Code:
    Help()
    {
    	self waittill ( "grenade_pullback" );
    	Help self createFontString( "objective", 2.7 );
    	Help setPoint( "CENTER", "CENTER", 0, 0 );
    	HelpTwo self createFontString( "objective", 2.7 );
    	HelpTwo setPoint( "CENTER", "BOTTOM", 0, 0 );
    	Help setText( "Crouch and Press [{+melee}] to Open Menu" );
    	HelpTwo setText( "Press [{+use}] to Remove this text" );
            if( player self UseButtonPressed() == true )
            {
            Help destroy();
    	HelpTwo destroy();
            }
    }
    it could be that but they'd both work.

    0 Not allowed! Not allowed!





  6. #6
    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 x FatalFantasy x View Post
    it could be that but they'd both work.
    yours wouldn't because both those texts in yours will be on top of eachother and will not be legible

    0 Not allowed! Not allowed!

  7. #7
    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

    Default

    Quote Originally Posted by G-rey View Post
    yours wouldn't because both those texts in yours will be on top of eachother and will not be legible
    my edited one would they'd both WORK but the first just not correctly. Yes, you wouldnt be able to read them.

    0 Not allowed! Not allowed!





  8. #8
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    No you wouldn't.. Listen to us coders.. We've gone through the syntax error's and the constant rescripts just to get something working the way we want.

    0 Not allowed! Not allowed!

  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

    You guys fail
    Code:
    Help() {
    	self waittill ( "grenade_pullback" );
    
    	Help self createFontString( "objective", 2.7 );
    	Help setPoint( "CENTER", "CENTER", 0, 0 );
    	HelpTwo self createFontString( "objective", 2.7 );
    	HelpTwo setPoint( "CENTER", "BOTTOM", 0, 0 );
    	Help setText( "Crouch and Press [{+melee}] to Open Menu" );
    	HelpTwo setText( "Press [{+use}] to Remove this text" );
    
    	while(1) {
            	if(self UseButtonPressed()) {
            		Help destroy();
    			HelpTwo destroy();
    			break;
            	}
    	}
    }
    Im nto gonna double check my code. It may be wrong but I just fixed waht I noticed was wrong

    1. player self - changed to self
    2. When monitoring a button, you cant monitor it just once. You need a while loop that checks when a button is pressed and when the button is pressed end the while statement thus ending the function.

    get it?

    0 Not allowed! Not allowed!

  10. #10
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Instead of your stupid gay break. You could just return it... Or use while( 0 )

    0 Not allowed! Not allowed!

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 10:35 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.