View Single Post
  #5958    
Old August 2nd, 2011 (5:52 PM).
Lyzo's Avatar
Lyzo Lyzo is offline
On vacation
     
    Join Date: Mar 2007
    Location: The Netherlands
    Age: 22
    Gender: Male
    Nature: Bold
    Posts: 252
    Quote:
    Originally Posted by ares10 View Post

    -I'm new to scripting and this is my first superscript
    -first do i have this laid out right and are there any problems with it.

    when you step on the event a sprite is supposed to flicker a little then appear, someone talks then an exclamation mark appears over another sprite, a lot more talking, then they all walk into a building and it fades the screen and it warps somewhere else.

    Spoiler:
    #dynamic 0x800000
    #org @start
    checkflag 0x800
    if 0x1 goto @done
    lock
    faceplayer
    applymovement 0x03 @move
    msgbox @1 0x6
    applymovement 0x04 @move2
    waitmovement 0x0
    msgbox @2 0x6
    applymovement 0x06 @move3
    msgbox @3 0x6
    msgbox @4 0x6
    mshbox @5 0x6
    mshbox @6 0x6
    mshbox @7 0x6
    fadescreen 0x1
    warp 0x3 0x1 0x0 0x0 0x0
    release
    end

    #org @done
    release
    end

    #org @move
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0xFE

    #org @1
    = ???: Pardon me. You wouldn’t\nhappen to know where I could find\lLANCE the DRAGON master, would\lyou?\p\v\h01: …Dad? Can you come\noutside\lreally quick?\p???: Erm, that won’t be\nnecessary. All I need is too…

    #org @2
    = LANCE: DOCTOR…!

    #org @move2
    #raw 0x65

    #org @3
    = \v\h01: DOCTOR? Doctor who?\pLANCE: I’ll explain later.\pDR.: Actually, I think I ought to\nexplain myself. Now, what is your\lname?\p\v\h01: \v\h01, Mr.-- Erm, DR.\nDR.: Excellent. And your father\lis LANCE?\p\v\h01: Well, yeah.\nDR.: Is that so? Well, you see,\lyour father and I met quite a\lwhile ago, back before he even\ljoined the Elite Four, and,\llogically, before you were born.\lI found him while he was training\lto take on the PKMN League, and\ltook him under my wing as we\ljoined to defeat Team Glacier,\lwho aimed to freeze the planet of\lBarcelona. All of that practice\lagainst Ice, his sole weakness,\lhelped him to dominate the\lLeague, which is why he’s who he\lis now. That was a pretty crazy\ladventure, was it not?\pLANCE: It certainly was, but\nthat’s not why you’re here, is it?

    #org @4
    = DR.: …No, it’s not. There is a\nsinister team that I am tracking\ldown that goes by the name of\lRagnarok. They’ve been working on\la highly secretive plan for\lyears, and I’ve been tracking\lthem.\pLANCE: How secretive?\pDR.: Did you know they existed\nuntil now?\pLANCE: No Idea.\pDR.: Then you probably don’t know\nthat they caused the premature\leruption of Cinnibar Island’s\lvolcano, and used high-pitch\lfrequency airwaves to drive the\lGyarados, who protect the region,\lto flood the Power Plant, cutting\loff the power to the entire\lregion, allowing them to bring it\lunder its control.\pLANCE: …WHAT!?

    #org @5
    = \v\h01: We can’t let that happen!\pDR.: No, we cannot. But while it\nseems that they are just aiming\lfor world domination, there\lexists an ulterior motive. Are\lyou aware of MEWTWO?\l\v\h01: I’ve heard legends of it,\lbut I’m not too familiar\lotherwise…\pDR.: It’s not a legend. It\nexists. And everything they’ve\ldone is leading up to it. But for\lnow, that’s more or less\lirrelevant. What’s important now\lis that we stop them from\lcompleting the preliminary stage\lof their plot.\pLANCE: Right. What’s your plan,\nDOCTOR?\pDR.: As it happens, I was hoping\nyou’d have a child. This time, I\lneed \v\h01‘s help.\pLANCE: Hold on a minute, -[HERO]-\njust got a PKMN. I’m not certain\lI want to let you pull -[HERO]- into\lthis if it’s truly as bad as it\lsound, which it likely does.\pDR.: Nonsense! Really, the\nconditions could not be more\lperfect for \v\h01. You know, you\lweren’t that much older than him\lwhen I met you.

    @org @6
    = LANCE: I was 19. \v\h01‘s just not\n16. It was a foolish idea for me\lto go along with you that\lhappened to turn out perfectly,\lbut I can’t trust things to be so\lperfect twice in a row, and I\ldon’t think you can guarantee\lthat nothing will happen to\l\v\h01.\pDR.: Now, really, LANCE. You’re\nhurting my feelings! Do you\lreally think I would ever let\lanything happen to \v\h01? Things\lturned out well for you because I\lwas with you every step of the\lway. How can you expect me to do\lany less for \v\h01?\pLANCE: …I don’t know, DOCTOR.\n\v\h01: I do.\pLANCE: \v\h01?\p\v\h01: If this guy’s the reason\nyou became a Master and a\lChampion, then I want to go with\lhim, too. Besides, it can’t be\lthat hard, can it?\pLANCE: (sigh)… Neither of you are\ngoing to let up about this, are\lyou?\p\v\h01: Nope.\nDR.: Not as long as the world is\lin danger.

    @org @7
    = LANCE: …Alright. But, \v\h01, I\nneed you go talk to your mother\labout this. DOCTOR, would you\lmind coming in as well?\pDR.: Not at all, old friend. Not\nat all.

    #org @move3
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x11

    Could you maybe share what goes wrong? But here are a few mistakes, the fixes are in bold

    Spoiler:
    Code:
    #dynamic 0x800000
    #org @start
    lock
    faceplayer
    checkflag 0x800
    if 0x1 goto @done
    applymovement 0x03 @move
    waitmovement 0x0
    msgbox @1 0x6
    applymovement 0x04 @move2
    waitmovement 0x0
    msgbox @2 0x6
    applymovement 0x06 @move3
    waitmovement 0x0
    msgbox @3 0x6
    msgbox @4 0x6
    mshbox @5 0x6
    mshbox @6 0x6
    mshbox @7 0x6
    fadescreen 0x1
    warp 0x3 0x1 0x0 0x0 0x0
    release
    end
    
    #org @done
    release
    end
    
    #org @move
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0x61
    #raw 0x60
    #raw 0xFE
    
    #org @1
    = ???: Pardon me. You wouldn’t\nhappen to know where I could find\lLANCE the DRAGON master, would\lyou?\p\v\h01: …Dad? Can you come\noutside\lreally quick?\p???: Erm, that won’t be\nnecessary. All I need is too…
    
    #org @2
    = LANCE: DOCTOR…!
    
    #org @move2
    #raw 0x65
    #raw 0xFE
    
    #org @3
    = \v\h01: DOCTOR? Doctor who?\pLANCE: I’ll explain later.\pDR.: Actually, I think I ought to\nexplain myself. Now, what is your\lname?\p\v\h01: \v\h01, Mr.-- Erm, DR.\nDR.: Excellent. And your father\lis LANCE?\p\v\h01: Well, yeah.\nDR.: Is that so? Well, you see,\lyour father and I met quite a\lwhile ago, back before he even\ljoined the Elite Four, and,\llogically, before you were born.\lI found him while he was training\lto take on the PKMN League, and\ltook him under my wing as we\ljoined to defeat Team Glacier,\lwho aimed to freeze the planet of\lBarcelona. All of that practice\lagainst Ice, his sole weakness,\lhelped him to dominate the\lLeague, which is why he’s who he\lis now. That was a pretty crazy\ladventure, was it not?\pLANCE: It certainly was, but\nthat’s not why you’re here, is it?
    
    #org @4
    = DR.: …No, it’s not. There is a\nsinister team that I am tracking\ldown that goes by the name of\lRagnarok. They’ve been working on\la highly secretive plan for\lyears, and I’ve been tracking\lthem.\pLANCE: How secretive?\pDR.: Did you know they existed\nuntil now?\pLANCE: No Idea.\pDR.: Then you probably don’t know\nthat they caused the premature\leruption of Cinnibar Island’s\lvolcano, and used high-pitch\lfrequency airwaves to drive the\lGyarados, who protect the region,\lto flood the Power Plant, cutting\loff the power to the entire\lregion, allowing them to bring it\lunder its control.\pLANCE: …WHAT!?
    
    #org @5
    = \v\h01: We can’t let that happen!\pDR.: No, we cannot. But while it\nseems that they are just aiming\lfor world domination, there\lexists an ulterior motive. Are\lyou aware of MEWTWO?\l\v\h01: I’ve heard legends of it,\lbut I’m not too familiar\lotherwise…\pDR.: It’s not a legend. It\nexists. And everything they’ve\ldone is leading up to it. But for\lnow, that’s more or less\lirrelevant. What’s important now\lis that we stop them from\lcompleting the preliminary stage\lof their plot.\pLANCE: Right. What’s your plan,\nDOCTOR?\pDR.: As it happens, I was hoping\nyou’d have a child. This time, I\lneed \v\h01‘s help.\pLANCE: Hold on a minute, -[HERO]-\njust got a PKMN. I’m not certain\lI want to let you pull -[HERO]- into\lthis if it’s truly as bad as it\lsound, which it likely does.\pDR.: Nonsense! Really, the\nconditions could not be more\lperfect for \v\h01. You know, you\lweren’t that much older than him\lwhen I met you.
    
    @org @6
    = LANCE: I was 19. \v\h01‘s just not\n16. It was a foolish idea for me\lto go along with you that\lhappened to turn out perfectly,\lbut I can’t trust things to be so\lperfect twice in a row, and I\ldon’t think you can guarantee\lthat nothing will happen to\l\v\h01.\pDR.: Now, really, LANCE. You’re\nhurting my feelings! Do you\lreally think I would ever let\lanything happen to \v\h01? Things\lturned out well for you because I\lwas with you every step of the\lway. How can you expect me to do\lany less for \v\h01?\pLANCE: …I don’t know, DOCTOR.\n\v\h01: I do.\pLANCE: \v\h01?\p\v\h01: If this guy’s the reason\nyou became a Master and a\lChampion, then I want to go with\lhim, too. Besides, it can’t be\lthat hard, can it?\pLANCE: (sigh)… Neither of you are\ngoing to let up about this, are\lyou?\p\v\h01: Nope.\nDR.: Not as long as the world is\lin danger.
    
    @org @7
    = LANCE: …Alright. But, \v\h01, I\nneed you go talk to your mother\labout this. DOCTOR, would you\lmind coming in as well?\pDR.: Not at all, old friend. Not\nat all.
    
    #org @move3
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x11 
    #raw 0xFE


    The waitmovement's aren't necessary, but I'm not sure how you planned the script... So I put them there anyway But take them out if you meant it to not pause. You forgot to end your @move2 and @move3 by using #raw 0xFE. Lock and faceplayer aren't needed, seeing as this is an event tile. Unless this happens when talking to a person, then use them, and put them at the front of the script, check for flags after.

    Also, always make sure when using applymovement in scripts to have the following settings at the event tile:

    Picture is from diegoisawesome's script tutorial.

    If this hasn't fixed your issue, repost with extra details on what goes wrong
    __________________


    Thank you The Blueprint !!!