The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > trebornosliw
Reload this Page Conversation Between trebornosliw and Anselection

Notices
For all updates, view the main page.

Ad Content
Conversation Between trebornosliw and Anselection
Showing Visitor Messages 1 to 8 of 8
  1. trebornosliw
    April 2nd, 2010 11:00 AM
    trebornosliw
    Okay, so first of all, your movements are perfect. Your problems here are the checkflags and a few formatting issues.
    First, always use lockall before a movement script, and releaseall before the end. It just makes everything cleaner.
    Second, you don't need checkflag 0x1000 for this. The reason the script is repeating is that you don't setflag 0x1000 at the end, so it doesn't know the event is done, and even though you have a checkflag 0x82F, you haven't given the script a command for what to do if 0x1. So just deleted the checkflag 0x82F and you're good.
    3. You don't need an "end" after your movement commands. Just 0xFE for each one, which you did.
    4. It's best to have a space between each script section, makes it easier to view and edit.
    Here's the edited script, changes in bold (deletes in italics). Look at what went wrong, then try making another, working script.

    Spoiler:

    #dynamic 0x800000

    #org @start
    lockall
    checkflag 0x82F
    if 0x1 goto @end (deleted checkflag 0x1000)
    Applymovement 0x1 @go
    waitmovement 0x0
    msgbox @lets 0x6
    setflag 0x82F
    applymovement 0x1 @go2
    waitmovement 0x0
    releaseall
    end

    #org @end
    releaseall
    end

    #org @lets
    = Hey [PLAYER]. Your running shoes came in\lthe mail. Here, put them on.\p[PLAYER] obtained the Running Shoes!

    #org @go
    #raw 0x11
    #raw 0x13
    #raw 0xFE

    #org @go2
    #raw 0x12
    #raw 0x10
    #raw 0x02
    #raw 0xFE (deleted end)
  2. Anselection
    April 1st, 2010 7:56 PM
    Anselection
    Alrighty, the problem with this script is that everytime I step on it, the script replays itself.
    Spoiler:

    #dynamic 0x800000
    #org @start
    checkflag 0x82F
    Checkflag 0x1000
    if 0x1 goto @end
    Applymovement 0x1 @go
    waitmovement 0x0
    msgbox @lets 0x6
    Setflag 0x82F
    Applymovement 0x1 @go2
    waitmovement 0x0
    end
    #org @end
    end
    #org @lets
    = Hey [PLAYER]. Your running shoes came in\lthe mail. Here, put them on.\p[PLAYER] obtained the Running Shoes!
    #org @go
    #raw 0x11
    #raw 0x13
    #raw 0xFE
    #org @go2
    #raw 0x12
    #raw 0x10
    #raw 0x02
    #raw 0xFE
    end
  3. trebornosliw
    April 1st, 2010 7:49 PM
    trebornosliw
    Nice, I didn't know you'd done Trainer Scripts yet.
    So, if you're working on applymovement, why don't we start looking at that now? PM me the script you said was "buggy," and I'll walk you through the process.
    Now I really do need to go to bed :\. But I'll get back to you in the morning.
  4. Anselection
    April 1st, 2010 7:45 PM
    Anselection
    What I know so far is Trainer Scripts, normal talking scripts, and I made a get running shoes script with applymovements, similiar to the one you made for me, but it was a bit buggy.
  5. trebornosliw
    April 1st, 2010 7:43 PM
    trebornosliw
    Okay, so refresh my memory. Where are you now? What can you do?
    I've gtg to bed, so I may not be able to answer this till tomorrow...
  6. Anselection
    April 1st, 2010 4:20 PM
    Anselection
    It's actually to continue the tutoring. I wanna do it myself, but I want you to tutor me. :o
  7. trebornosliw
    April 1st, 2010 4:16 PM
    trebornosliw
    I'm kind of busy right now. I can only help you if it's something small, and you'll need to compile it yourself...
  8. Anselection
    March 30th, 2010 11:12 PM
    Anselection
    You, my friend. Do you think you could help me with scripting?(second time asking and hopefully, you'll help again this time. :D)

All times are GMT -8. The time now is 9:06 AM.