Results 1 to 3 of 3

Thread: How do you restart a script? PLEASE HELP!

  
  1. #1
    JoshF is offline -Hacks Newbie
    Join Date
    Mar 2006
    Posts
    12
    Rep Power
    0

    Default

    When my game I am making finishes, it checks to see who the winner is by the use of a position variable. Right after than I do a screen:print. after the screen print, I want it to go to the top of the code after I have declared all my variables. How can I do this? I am not in a loop at this point so break is not going to work? Can anyone help, it's the last thing I need to do to my game.


  2. #2
    bob joe is offline -Hacks Smarty
    Join Date
    Feb 2006
    Posts
    188
    Rep Power
    14

    Default

    dofile ("index.lua")
    I'm sure that there are other ways, but i dont know about them
    Are you in good hands?

    Try using the PSP Upgrader/Downgrader
    http://www.psp-hacks.com/forums/viewtopic.php?id=101827

  3. #3
    kozine is offline -Hacks Newbie
    Join Date
    Mar 2006
    Posts
    2
    Rep Power
    0

    Default

    What I would do is under your main loop do a controls read and then u start to break the script. Heres an example:

    Code:
    load everything you need here
    
    --Begin the main loop
    while true do
    
    --Define the reading of controls
    pad = Controls.read()
    
    Rest of code here
    
    if pad:start() then
    break
    end
    Or something like that. Hopefully this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •