• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

EASY GYM LEADER SCRIPTING

Did this Help You???


  • Total voters
    88
  • 441
    Posts
    16
    Years
    Aerow's Gym leader Re-match XSC scripts!!!

    Inserting a new gym leader using XSE scripts.

    REQUIRMENTS
    Spoiler:


    LETS BEGIN
    Firstly open your Xse and in it open your Rom that you wanna use.

    Then open Free space finder and Get a free space of about 100 bytes.

    Match Types!!
    Spoiler:


    Ok lets start

    #dynamic 0x(your offset)

    #org @start
    lockall
    faceplayer
    checkflag 0x(The Badge you want)
    if 0x1 goto @end
    msgbox @002 0x6
    trainerbattle 0x1 0x(Hex of leader) 0x0 @beforematch @aftermatch @later
    end

    #org @beforematch
    =(Dialogue before battle in the battle screen)

    #org @aftermatch
    =(Dialogue after losing the battle but in the battle screen)

    #org @later
    msgbox @003 0x6
    fanfare 0x13E
    msgbox @004 0x4
    waitfanfare
    closeonpresskey
    msgbox @005 0x6
    giveitem 0x(your item in hex) 0x(quantity in hex) 0xtype
    setflag 0x(the badge you want)
    releaseall
    end

    #org @done
    msgbox @001 0x6
    release
    end

    #org @001
    =(go to the next town to get ur next badge)

    #org @002
    =(intro Before match)

    #org @003
    =(you got the [] badge)

    #org @004
    =([player] recieved [] badge)

    #org @5
    =(message before giving item)

    HERE REPLACE [] WITH A NAME AND () WITH ANY THING YOU WANT.

    ITEMS HEX CODES:

    Spoiler:


    BADGES FLAGES:
    Spoiler:

    HERE'S AN EXAMPLE:
    Spoiler:


    SPECIAL THANKS TO:
    RaiRai-Kun
    diegoisawesome
    HACKMEW

    FOR GIVING EXPERT TUTORIALS AND MAKING ME GET INTO XSE IN A DAY!!!
     
    Last edited by a moderator:
    Great, can you also show how to do double battles?
     
    I Figured Out The Gym Rematch Scripts , I Will be Posting It By Tommorow!!!!!!!!!!!!

    Please dont post it without my permision and if you have any doubts just pm me.This is a word 2007 and PDF file file:)
     
    Last edited by a moderator:
    You forgot the after battle text.
    (The text the leader says after you got the badge and item, like if you left the gym, came back in, and spoke to him/her.)
    I tell you this since there ARE people here that are just SO LAZY, they wont even take a minute to add it... XD
     
    Ah, thanks for the info, this shall surely help me finish up parts of Mirage Version.
     
    change names

    i was wondering: how do you change the names of the badges so that they are recognized by that name throughout the game?
     
    It's the music when you have beaten the gym leader. Fanfare, it starts to play that music. Waitfanfare (I don't know, maybe wanfare has to wait...). 0x13E is wanfare that you want to play, there's different fanfares. I haven't tested fanfares yet so I am not so sure about this.

    I think this will help me. Looks very easy, I'm going to test it (when I have solved my first problem, if you can help me with that go and tell it, my question is in Add new pokémon 15 easy-steps and put answer there).
     
    If you don't want music to play when you have your badge.
     
    How would I change the pokemon that the gym leaders would use?
    And what are the gym leaders hex values?

    Sorry if I'm being a noob, just trying to learn :)
     
    Back
    Top