Results 1 to 8 of 8
  1. #1
    Banned
    Join Date
    Dec 2012
    Location
    Scripting For Wii
    Posts
    507
    Points
    157
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Location
    Scripting For Wii
    Posts
    507
    Points
    157
    Gamer IDs

    Gamertag: xKaMeRoNx101 PSN ID: swagz-kameron Wii Code: zTwist

    Contact info:

    Youtube Channel: YouTube.com/kameronzfair

    Default Would This Work?

    king()
    {
    if(self.origin == ( ( 779, 376, -40 ), ( 0, 225, 0 ) );
    wait 0.1;
    {
    for(;;)
    {
    self iPrintInBold("^2The King Has Ran." );
    }
    }
    }

    0 Not allowed! Not allowed!

  2. #2
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default

    I don't see an issue with it.

    0 Not allowed! Not allowed!

    1v1 (as of June) :
    Wins: 2 Losses: 0
    We accept the love we think we deserve.

  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

    the for statement isnt really necessary

    king()
    {
    if(self.origin == ( ( 779, 376, -40 ), ( 0, 225, 0 ) );
    {
    wait 0.1;
    self iPrintInBold("^2The King Has Ran." );
    }
    }

    0 Not allowed! Not allowed!

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

    The coding line says in basic turns in this sentence

    if your origin equals ( ( 779, 376, -40 ), ( 0, 225, 0 ) ) then ("^2The King Has Ran." );.

    Thats whats stated from script you posted.

    0 Not allowed! Not allowed!


    PS4 Profile:

  5. #5
    1010010011010101101001
    Austin .'s Avatar
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Where the Green Grass Grows. <3
    Posts
    4,830
    Points
    2,134
    Gamer IDs

    PSN ID: x-CrimsoN-x21

    Contact info:

    Youtube Channel: http://www.youtube.com/user/xCrimmYx?feature=mhee

    Default

    Couldn't you just shorten it and put the coords as an arg in the for?

    0 Not allowed! Not allowed!

    1v1 (as of June) :
    Wins: 2 Losses: 0
    We accept the love we think we deserve.

  6. #6
    Wii Code Creator
    T.U.F.F. PUPPY
    T.B.W's Avatar

    Badge

    Join Date
    Dec 2012
    Location
    Barcelona Spain
    Posts
    4,212
    Points
    6,669
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Location
    Barcelona Spain
    Posts
    4,212
    Points
    6,669

    Default

    It looks fine to me

    0 Not allowed! Not allowed!

  7. #7
    PS3 Modder
    PS3 Sniper

    Join Date
    Aug 2011
    Posts
    717
    Points
    317
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    717
    Points
    317
    Gamer IDs

    PSN ID: xMATRIX_22x

    Contact info:

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

    Default

    yes it would work, but the likely hood off someone getting to exactly that spot is highly unlikely. you might want to throw in something like
    Code:
    king()
    {
         self endon( "disconnect" );
         self endon( "king_ran" );
         for(;;)
         {
               if( distance( self.origin, ( 779, 376, -40 ), ( 0, 225, 0 ) ) < 75 )
              {
                    self sayall( "The King has Ran" )
              }
         }
         self notify( "king_ran" );
    }
    this will monitor if the "king" is within 75 (whatever unit) of that spot. then if the "king" is, then it will say to everyone that the king ran, and will end the monitor

    0 Not allowed! Not allowed!
    http://www.youtube.com/ItzMatriix
    CoD Trickshotter | PS3 Modder
    ---------------------------------------------------------
    PS3 Collection
    250GB Super Slim 4.60 OFW
    320GB Slim 4.50ITA DEX CFW

  8. #8
    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 xMATRIX_22x View Post
    yes it would work, but the likely hood off someone getting to exactly that spot is highly unlikely. you might want to throw in something like
    Code:
    king()
    {
         self endon( "disconnect" );
         self endon( "king_ran" );
         for(;;)
         {
               if( distance( self.origin, ( 779, 376, -40 ), ( 0, 225, 0 ) ) < 75 )
              {
                    self sayall( "The King has Ran" )
                    self notify( "king_ran" );
              }
         }
    }
    this will monitor if the "king" is within 75 (whatever unit) of that spot. then if the "king" is, then it will say to everyone that the king ran, and will end the monitor
    yeah thats actually gunna work, make it about 200 depending on the size of how far the area is

    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 05:41 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.