Aerow's Gym leader Re-match XSC scripts!!!
Inserting a new gym leader using XSE scripts.
REQUIRMENTS
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!!
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:
BADGES FLAGES:
HERE'S AN EXAMPLE:
SPECIAL THANKS TO:
RaiRai-Kun
diegoisawesome
HACKMEW
FOR GIVING EXPERT TUTORIALS AND MAKING ME GET INTO XSE IN A DAY!!!
Inserting a new gym leader using XSE scripts.
REQUIRMENTS
Spoiler:
O.k now the basic thing you need to know is
1.)Basic Xse scripts.
2.)Hex value of your gym leader,use advance trainer to do it.
3.)Patience.
1.)Basic Xse scripts.
2.)Hex value of your gym leader,use advance trainer to do it.
3.)Patience.
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:
trainerbattle 0x1 0x(Hex of leader) 0x0 @beforematch @aftermatch @later ==>Official Battles
trainerbattle 0x4 0x(Hex of leader) 0x0 @beforematch @aftermatch @later ==>Double Battles
trainerbattle 0x4 0x(Hex of leader) 0x0 @beforematch @aftermatch @later ==>Double Battles
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:
USE RAI-KUN'S TUTORIAL AND GET THEM.
BADGES FLAGES:
Spoiler:
0x820 - First Badge
0x821 - Second Badge
0x822 - Third Badge
0x823 - Fourth Badge
0x824 - Fifth Badge
0x825 - Sixth Badge
0x826 - Seventh Badge
0x827 - Eighth Badge
0x821 - Second Badge
0x822 - Third Badge
0x823 - Fourth Badge
0x824 - Fifth Badge
0x825 - Sixth Badge
0x826 - Seventh Badge
0x827 - Eighth Badge
HERE'S AN EXAMPLE:
Spoiler:
#dynamic 0x830000
#org @start
lock
faceplayer
checkflag 0x820
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 0x12A 0x1 0x5
setflag 0x820
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.
#org @start
lock
faceplayer
checkflag 0x820
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 0x12A 0x1 0x5
setflag 0x820
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.
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: