Inserting a new gym leader using XSE scripts.
REQUIRMENTS
Special Thanks To
RaiRai-Kun, diegoisawesome
FOR GIVING EXPERT TUTORIALS AND MAKING ME GET INTO XSE IN A DAY!!!
HackMew
THE GOD OF XSE.
PLEASE ADD REPUTATION TO AEROW IF YOU LIKE THIS TUTORIAL
PRE-REQUISITES
ITEM HEX CODES
GO TO RAIRAI-KUN’S Tutorial and get a list of item hex codes.
NOTE
# Here I’ve used some “()” actually you’ve got to replace them with Your choice.
# In the gym leades rematch script I’ve set it up as a double battle and you’ve got to change it in you’re A-trainer.
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 500 bytes.
GYM LEADER SCRIPT
HERE'S AN EXAMPLE:
NOTE IN THE ABOVE CASE I’VE USED BROCK AS MY TRAINER HEX YOU MAY USE ANY OF YOUR CHOICE
GYM LEADER REMATCH SCRIPT
THIS SCRIPT IS ALSO FAIRLY SIPMLE AS THE ABOVE SCRIPT BUT IT INVOLVES AN OTHER TRAINER HEX CODE FOR THE RE-MATCH SO IN YOU’RE A-TRAINER CUSTOMISE AN OTHER TRAINER FOR THE RE-MATCH AND MAKE HIM THE GYM LEADER.
O.K SO HERE I’LL DIRECTLY GIVE YOU AN EXAMPLE BECAUSE IT’S LIKE THE SAME ABOVE BATTLE.
NOTE:FOR THE RE-MATCH I’M USING A DOUBLE BATTLE AND SO PUT A TICK TO THE DOUBLE BATTLE IN YOU’RE A-TRAINER FOR THE SECOND TRAINER HEX CODE.
THE END
By Aerow
REQUIRMENTS
- Code:
O.k now the basic thing you need to know is
1.)Basic XSE scripts.
2.)Two Hex value for your gym leader.
3.)Patience.
Tools Required
1.)eXtreme Script Editor
2.)A-Trainer
3.)Free Space Finder
4.)A-Map
Special Thanks To
RaiRai-Kun, diegoisawesome
FOR GIVING EXPERT TUTORIALS AND MAKING ME GET INTO XSE IN A DAY!!!
HackMew
THE GOD OF XSE.
PLEASE ADD REPUTATION TO AEROW IF YOU LIKE THIS TUTORIAL
PRE-REQUISITES
- Code:
BADGES FLAGS:
0x820 - First Badge
0x821 - Second Badge
0x822 - Third Badge
0x823 - Fourth Badge
0x824 - Fifth Badge
0x825 - Sixth Badge
0x826 - Seventh Badge
0x827 - Eighth Badge
ITEM HEX CODES
GO TO RAIRAI-KUN’S Tutorial and get a list of item hex codes.
NOTE
# Here I’ve used some “()” actually you’ve got to replace them with Your choice.
# In the gym leades rematch script I’ve set it up as a double battle and you’ve got to change it in you’re A-trainer.
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 500 bytes.
GYM LEADER SCRIPT
- Code:
#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'S AN EXAMPLE:
- Code:
#dynamic 0x830000
#org @start
lock
faceplayer
checkflag 0x821
if 0x1 goto @done
msgbox @2 0x6
trainerbattle 0x1 0x19E 0x0 @before @after @later
end
#org @before
= Show me what ya got!
#org @after
= What the-?
#org @later
msgbox @3 0x6
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
msgbox @5 0x6
giveitem 0XC4 0x1 0x0
setflag 0x821
release
end
#org @done
msgbox @1 0x6
release
end
#org @1
= You should travel to Moserde town\nto get your next badge.
#org @2
= Welcome to Fander Town Gym.\nYou want to challenge me?
#org @3
= Congratulations!\pFor beating me, you get\nthis badge!
#org @4
= \v\h01 recieved a badge!
#org @5
= Oh, and please take this.
NOTE IN THE ABOVE CASE I’VE USED BROCK AS MY TRAINER HEX YOU MAY USE ANY OF YOUR CHOICE
GYM LEADER REMATCH SCRIPT
THIS SCRIPT IS ALSO FAIRLY SIPMLE AS THE ABOVE SCRIPT BUT IT INVOLVES AN OTHER TRAINER HEX CODE FOR THE RE-MATCH SO IN YOU’RE A-TRAINER CUSTOMISE AN OTHER TRAINER FOR THE RE-MATCH AND MAKE HIM THE GYM LEADER.
O.K SO HERE I’LL DIRECTLY GIVE YOU AN EXAMPLE BECAUSE IT’S LIKE THE SAME ABOVE BATTLE.
NOTE:FOR THE RE-MATCH I’M USING A DOUBLE BATTLE AND SO PUT A TICK TO THE DOUBLE BATTLE IN YOU’RE A-TRAINER FOR THE SECOND TRAINER HEX CODE.
- Code:
#dynamic 0x85223A
#org @start
lock
faceplayer
checkflag 0x821
if 0x1 goto @done
msgbox @2 0x6
trainerbattle 0x1 0x19E 0x0 @before @after @later
end
#org @before
= Show me what ya got!
#org @after
= What the-?
#org @later
msgbox @3 0x6
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
msgbox @5 0x6
giveitem 0xC4 0x1 0x0
setflag 0x821
release
end
#org @done
msgbox @0 0x5
if 0x1 goto @yes
msgbox @6 0x6
release
end
#org @yes
msgbox @8 0x6
trainerbattle 0x4 0xD2 0x0 @before2 @after2 @later2
end
#org @0
= Shall we have a rematch?
#org @1
= You should travel to Moserde town\nto get your next badge.
#org @2
= Welcome to Fander Town Gym.\nYou want to challenge me?
#org @3
= Congratulations!\pFor beating me, you get\nthis badge!
#org @4
= \v\h01 recieved a badge!
#org @5
= Oh, and please take this.
#org @6
= O.k maybe next time?
#org @before2
= Ha Ha....
#org @after2
= Oh Man!!!
#org @later2
= O.k you are still in good shape!!
#org @8
= Bring it on!!
THE END
By Aerow