• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[TehTehTehTeh's] XSE Basic/Medium tutorial

Status
Not open for further replies.

M O M U S U

Fail-safe
108
Posts
15
Years
  • Do you know how to make a legendary battle script?

    An example is a Mew on the map, when you talk to it a battle starts.

    I really want to know how to do this, but I can't find any info on it anywhere.
     

    ~Teh Panda~

    Back in hacktion
    918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    Sorry for that dumb thread about my script not working, that guy is a screwball, take out the parts after the " ' " in my guide!
     
    857
    Posts
    15
    Years
  • Do you know how to make a legendary battle script?

    An example is a Mew on the map, when you talk to it a battle starts.

    I really want to know how to do this, but I can't find any info on it anywhere.
    Its the same as wildbattle(Just change the PKMN #),just look at thethethethethe's(did I type too many the's?)tut and change it into XSE.(Example $-into-@)
    Unless theres a XSE tut with wildbattle, then check that out.
     

    maximum911

    Beggining Scripter
    104
    Posts
    16
    Years
    • Seen Nov 1, 2009
    hey hockey panda.i have asked a mod to remove my thread. I did not make the thread to insult you or seth's tutorials. I was just trying to help by pointing out some flaws but it appears i was wrong. so forget about it ok?
     

    ~Teh Panda~

    Back in hacktion
    918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    hey hockey panda.i have asked a mod to remove my thread. I did not make the thread to insult you or seth's tutorials. I was just trying to help by pointing out some flaws but it appears i was wrong. so forget about it ok?

    Ok, sounds good, hope you get everything sorted out, talk to me if you need any help
     

    ~Teh Panda~

    Back in hacktion
    918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    how do i use flags? i don't understand

    Basic flag commands

    Code:
    setflag 0x200
    most of the time these 2 go together
    Code:
    checkflag 0x200
    if b_true goto @blabla

    Code:
    clearflag 0x200

    0x200 = the flag number, 200 can be any number for the flag, beware of numbers below 200.
     

    mattattack

    Huh, Son?
    184
    Posts
    16
    Years
  • I have a question: If you have to go to the prof. before leaving the town would it go like this

    #Dynamic 0x offset

    #ORG @start
    lock
    faceplayer
    setflag 0x200
    if b_true goto @first pokemon
    message @can't go
    boxset 6
    release
    end

    #ORG @can't go
    = I shouldn't go out without a pokemon
    release
    end

    #ORG @first pokemon
    =PROF: Here \v\ho1\ is your pokemon
    givepokemon 1 5 0 0 0 0
    release
    end
     

    ~Teh Panda~

    Back in hacktion
    918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    I have a question: If you have to go to the prof. before leaving the town would it go like this

    #Dynamic 0x offset

    #ORG @start
    lock
    faceplayer
    setflag 0x200
    if b_true goto @first pokemon
    message @can't go
    boxset 6
    release
    end

    #ORG @can't go
    = I shouldn't go out without a pokemon
    release
    end

    #ORG @first pokemon
    =PROF: Here \v\ho1\ is your pokemon
    givepokemon 1 5 0 0 0 0
    release
    end

    No, this would not be correct, you are missing some key parts.

    First of all:

    Setflag = where you set your flag

    CheckFlag = checking for the flag
    ^After this you do the "if b_true goto @blabla" so it looks if the flag is set yet.

    Clearflag = clearing the flag that may not be in use anymore or anything that you would clear it for.
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    For some reason every time when i talk to the person which i coded, the words are always blank... can anyone help me?

    Could you please post the script you used? Kinda impossible to help otherwhise.
     
    13
    Posts
    15
    Years
  • oh sorry...
    well i actually copied and paste the codings from the tut but it still won't work
    #Dynamic 0x2FB51C
    #Org @talk
    Lockall
    Faceplayer
    Msgbox @hi
    BoxSet 0x6
    Release
    End
    #Org @hi
    = hi.
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    oh sorry...
    well i actually copied and paste the codings from the tut but it still won't work
    Spoiler:

    If you want to use lockall, you need to use releaseall as well. So, you should use lock instead in this case.

    Anyway, what offset gave you XSE once you compiled the script?
    Did you try decompiling that script?
    Also what offset did you assign to the person/object that should run the script once talked to?
     
    13
    Posts
    15
    Years
  • um... i don't know how to decompile the script
    sometimes it gives me a new offset
    and i just press copy and paste it in advance map
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    When you compile it what offset do you paste into A-Map? Is it @talk or @hi?

    If it's @hi it's the wrong one. Simply as that. But since it's not your case, could you show us the offset you used last time?

    Also, to decompile a script simply open the ROM, paste the offset in the textbox near the "Offset" label in the toolbar and then press the Decompile button near there.
     
    Status
    Not open for further replies.
    Back
    Top