View Single Post
  #3    
Old December 20th, 2008 (3:16 PM).
пзо's Avatar
пзо пзо is offline
zzirRusty
     
    Join Date: Dec 2008
    Nature: Quiet
    Posts: 222
    Quote:
    Originally Posted by shane2243 View Post
    i just wanna know how i'd go about including a a script that means i cannot open a door untill i've spoken to birch after i beat may/brenden?

    i want to basically lock the door till after birch has given me the pokedex, and the character's mom has given him/her the running shoes?


    [edit]would i have to put a person script on the door, but with no player icon, and make it so the person script disappears after i have said item?[/edit]
    What we would do here is:

    #Org @Start

    Setflag 0x1000

    For the battle script, you know, the battle with brendan/may.
    To keep the door locked we would

    #Org @Start
    Checkflag 0x1000 -

    This cheks if the Setflag 0x1000 is Done yet. Make sure you dont use the same flags twice..

    That was the battle..
    Now the Running shoes:

    #Org @Start
    Setflag 0x82F

    Now that should activate the running shoes..

    #Org @start
    Checkflag 82F

    That checks if you have the running shoes activated..

    Now the Pokedex.

    #Org @start
    Setflag 0x829

    That Sets the Pokedex, you now have the pokedex in your menu.

    #Org @start
    Checkflag 0x829

    Checks if the Pokedex is activated..

    So here we are.

    ---
    Pokedex Script

    #Dynamic 0xoffset

    #org @start
    checkflag 0x829
    if 0x0 goto @hey!
    if 0x1 goto @end
    end

    #org @hey!
    lock
    msgbox @icant
    boxset 0x6
    applymovement 0xFF @back
    waitmovement 0x0
    release
    end

    #org @icant
    = I can't go in there without\nmy pokedex

    #org @back
    #raw 0x00 0xFE

    #org @end
    release
    end


    ---
    Running shoes Script


    #Dynamic 0xoffset

    #org @start
    checkflag 0x82F
    if 0x0 goto @hey!
    if 0x1 goto @end
    end

    #org @hey!
    lock
    msgbox @icant
    boxset 0x6
    applymovement 0xFF @back
    waitmovement 0x0
    release
    end

    #org @icant
    = I can't go in there/nwithout my running shoes.

    #org @back
    #raw 0x00 0xFE

    #org @end
    release
    end


    putting them together is your job. [Its sooo easy]
    And I never included the Battle with May/Brendan.. that would go into too much detail.
    --
    You should inderstand it now, if you dont, just read a tutorial.
    This is the best one in my opinion:
    http://www.pokecommunity.com/showthread.php?t=146174
    Its called "Seth The Rom masters XSE scripting Tutorial"

    Hope you Exel!
    And good luck Scripting!
    __________________
    | Pokémon Obsidian | Pokémon Mystical Glacier |
    Yeah, I said it, Pokémon Mystical Glacier..
    Its comming back.. Better than ever.
    Along side Pokémon Obsidian.