• 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?".
  • Forum moderator applications are now open! Click here for details.
  • 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
15
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:
441
Posts
15
Years
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:

0m3GA ARS3NAL

Im comin' home...
1,816
Posts
16
Years
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
 
1
Posts
14
Years
  • Seen Apr 25, 2010
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?
 

Late

Pokémon Artist
549
Posts
15
Years
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).
 
33
Posts
14
Years
  • Seen Jan 4, 2017
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