Sierra's MEGA-HUGE XSE Scripting Tutorial Page 42

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies
Male
Seen June 16th, 2018
Posted June 2nd, 2015
24 posts
8.8 Years
Yeah. Just put the same. 001 ;)
Lol, problem is:

Trainer: 00
Person ID: 0000

Which one do I put it in? I notice that all the gym leaders have neither... they have 00(00) for both.

EDIT: I put the PET 001 in the script itself.
Want to watch boring and horrible Youtube videos? Check out my channel. :P

Sniper

ふゆかい

Male
Philippines
Seen August 9th, 2016
Posted June 5th, 2016
1,412 posts
9.5 Years
Lol, problem is:

Trainer: 00
Person ID: 0000

Which one do I put it in? I notice that all the gym leaders have neither... they have 00(00) for both.

EDIT: I put the PET 001 in the script itself.
In the Person ID of course, since it's impossible to put it on the Trainer.


Male
Seen June 16th, 2018
Posted June 2nd, 2015
24 posts
8.8 Years
In the Person ID of course, since it's impossible to put it on the Trainer.
Right, but you said to put it as 001, but there are 4 spaces, so are you allowed to leave one blank?

~ As I said before, none of the gym leaders have their ID there...or the trainers.
Want to watch boring and horrible Youtube videos? Check out my channel. :P

Sniper

ふゆかい

Male
Philippines
Seen August 9th, 2016
Posted June 5th, 2016
1,412 posts
9.5 Years
Right, but you said to put it as 001, but there are 4 spaces, so are you allowed to leave one blank?

~ As I said before, none of the gym leaders have their ID there...or the trainers.
o_O I don't know what you have to. But cutting this convo just watch tut on youtube lol


Female
Seen August 25th, 2014
Posted August 23rd, 2014
8 posts
8.7 Years
Can you please help me? I'm new at this, I am trying to write a trainer script, i can do the battle just fine, but i'm wanting to make it a rival so that when i win they say something witty and disappear, i find with this script i have to talk to them after the battle to get them to walk away, and they keep reappearing too..Would you please tell me what i did wrong?


#dyn 0x740000
#org @begin
trainerbattle 0x0 0x004 0x0 @intro @defeat
message @afterwards
callstd msg_NOCLOSE
closemsg
applymovement 0x4 @walkaway
end
#org @intro
= I'm Ready to fight!

#org @defeat
= Darn, You won[.]

#org @afterwards
= I can also say something after \nthe battle
#org @walkaway
m walk_up walk_up walk_up walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_up end

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
Can you please help me? I'm new at this, I am trying to write a trainer script, i can do the battle just fine, but i'm wanting to make it a rival so that when i win they say something witty and disappear, i find with this script i have to talk to them after the battle to get them to walk away, and they keep reappearing too..Would you please tell me what i did wrong?
You need to use trainerbattle 0x1 so the script continues straight after winning the battle.

Like in Diego's example script for a Gym Leader:

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @2 0x6
trainerbattle 0x1 0x001 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 0x147 0x1
setflag 0x820
release
end

#org @done
msgbox @1 0x6
release
end

#org @1
= You should travel to Cerulean City\nto get your next badge.

#org @2
= Welcome to Pewter City 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.
Thanks so much for this!

However, I have a problem. I'm not sure if anybody else who has posted above me has posted this question and/or had it answered, but here it is.
It doesn't let me script Warps.

As this is my first post, I can't post links yet, but it is"
i m g u r . c o m / z p m e Y C i
(without any spaces.)
You don't script warps tiles - that part has nothing to do with this tutorial. The warp diego used is as part of a script, whilst you're looking at warp tiles. The [W]s in A-Map simply go on a door (or by stairs, etc.) and will automatically warp you when you move in the correct manner. The warp you have a picture of takes you to Map 3,0 - Warp 0. Which should be Pallet Town. Change the numbers to change where it goes.
Age 30
Male
England
Seen 2 Weeks Ago
Posted December 5th, 2020
63 posts
15.3 Years
Hey great tutorial it is really helping me out. I have come across a problem though and don't know how to rectify it. Basically I have a script where a girl walks up to the player, talks and gives player a pokemon. She then walks back off screen. The problem is, when you walk the way she went, you can see her sprite standing there (standing where it originally walked from)

I want that sprite/person event to disappear after she walks off screen. Like the prof oak follow me script; his sprite isn't there until he gets you to follow him but you can see his person event in advance map. Thank you.

I have also tried hidesprite 0Xx and hidesprite 0x800F.

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
Hey great tutorial it is really helping me out. I have come across a problem though and don't know how to rectify it. Basically I have a script where a girl walks up to the player, talks and gives player a pokemon. She then walks back off screen. The problem is, when you walk the way she went, you can see her sprite standing there (standing where it originally walked from)

I want that sprite/person event to disappear after she walks off screen. Like the prof oak follow me script; his sprite isn't there until he gets you to follow him but you can see his person event in advance map. Thank you.

I have also tried hidesprite 0Xx and hidesprite 0x800F.
Keep the hidesprite, make sure it is 0xEVENTNUMBER. But also set a flag in your script (you might already have one in there?) - once you've got a flag going, copy the number into her PERSON ID in A-Map. When you combo setting a flag and hidesprite it makes the sprite disappear permanently, she'll only reappear if you use showsprite or clear the flag.
Female
Seen August 25th, 2014
Posted August 23rd, 2014
8 posts
8.7 Years
You need to use trainerbattle 0x1 so the script continues straight after winning the battle.

Like in Diego's example script for a Gym Leader:

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @2 0x6
trainerbattle 0x1 0x001 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 0x147 0x1
setflag 0x820
release
end

#org @done
msgbox @1 0x6
release
end

#org @1
= You should travel to Cerulean City\nto get your next badge.

#org @2
= Welcome to Pewter City 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.
You don't script warps tiles - that part has nothing to do with this tutorial. The warp diego used is as part of a script, whilst you're looking at warp tiles. The [W]s in A-Map simply go on a door (or by stairs, etc.) and will automatically warp you when you move in the correct manner. The warp you have a picture of takes you to Map 3,0 - Warp 0. Which should be Pallet Town. Change the numbers to change where it goes.
wheni do that, it says that there is an invalid character in the data, that it needs to be an integer, why is this?
Female
Seen August 25th, 2014
Posted August 23rd, 2014
8 posts
8.7 Years
i did what it showed. And got this as a response tinyurl . com/ l9kmskz
my script was

#dyn 0x740000
#org @begin
lock
faceplayer
checkflag 0x220
if 0x1 goto @done
msgbox @2 0x4
trainerbattle 0x1 0x004 0x0 @before @after @later
end
#org @before
= Hina: Here we go are you ready?!

#org @after
= Hina: Ngh You win...

#org @later
Msgbox @3 0x4
applymovement 0x4 @walkaway
setflag 0x220
release
end
#org @done
msgbox @1 0x4
release
end
#org @1
= Why can you see me?

#org @2
= Hina: Are you ready to \nfight me.

#org @3
= You won. This will be \nthe only time you do.

#org @walkaway
m walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_left walk_left walk_left walk_left walk_left walk_left walk_up walk_up walk_up walk_up end

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
Phone posting! Pew pew. There's nothing obvious wrong with your script, did you edit it at all after compiling?

Are you using a green event script tile for this? May be the problem. Maybe.

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
...
Applymovement
Waitmovement 0x0
Setflag 0x220
Hidesprite 0x
...

Also on that @done section change the msgbox number to 0x6 - 0x4 will mean it is stuck open.
Male
Seen June 16th, 2018
Posted June 2nd, 2015
24 posts
8.8 Years
You need to use trainerbattle 0x1 so the script continues straight after winning the battle.

Like in Diego's example script for a Gym Leader:

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @2 0x6
trainerbattle 0x1 0x001 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 0x147 0x1
setflag 0x820
release
end

#org @done
msgbox @1 0x6
release
end

#org @1
= You should travel to Cerulean City\nto get your next badge.

#org @2
= Welcome to Pewter City 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.


You don't script warps tiles - that part has nothing to do with this tutorial. The warp diego used is as part of a script, whilst you're looking at warp tiles. The [W]s in A-Map simply go on a door (or by stairs, etc.) and will automatically warp you when you move in the correct manner. The warp you have a picture of takes you to Map 3,0 - Warp 0. Which should be Pallet Town. Change the numbers to change where it goes.
Okay then, how do I input that offset in then?
Want to watch boring and horrible Youtube videos? Check out my channel. :P

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
Okay then, how do I input that offset in then?
I'm not sure what you're asking :(

Warp Number = The number of the purple tile you are warping too (says it on the event tab)
Map Bank = First number of a map in A-Map (IE all the towns are map bank 3)
Map Number = Second number of a map in A-Map.

If you're trying to warp at the end of the script (which would fit in this thread, but you weren't very clear) then you must have the warp command present so the end is:

warp 0xBANK 0xMAPNO 0xWARPNO 0x0 0x0
end

If you don't want to warp to an actual warp tile, but co-ordinates then the last two numbers work as X and Y. Hover over the tile you will want to end up on, in a-map, and in the bottom left corner it will tell you the co-ordinates in hex. For that kind of script you use:

warp 0xBANK 0xMAPNO 0xFF 0xXCOORD 0xYCOORD
end

Seen September 18th, 2014
Posted August 30th, 2014
5 posts
13.1 Years
Hello guys. I'm quite a newbie to scripting. Anyways, I tried to make Mega Evolutions for my game and I ended up with this:

#dynamic EB0B20

#org @megabattle
trainerbattle 0x0 0x001 0x0 @before @after
msgbox @beaten 0x6
release
end

#org @before
= Go, my POKeMON, prove yourselves!
goto @megavenusaur

#org @after
= Noo! My POKeMON have failed me!
special 0x18
compare LASTERSUT 0x19b
if 0x1 goto @megareverse
setvar 0x8005 0x0

#org @beaten
= You have inspired me. I will train/nmore and try to become like you.

#org @megavenusaur
special 0x18
compare LASTRESULT 0x3
if 0x1 goto @megastonecheck
end

#org @megastonecheck
special 0xe
compare LASTRESULT 0x62
if 0x1 goto @megaevolve
end

#org @megaevolve
setvar 0x8005 0x19b
special 0x16
end

#org @megareverse
setvar 0x8005 0x3
special 0x16
end

This however doesn't work. It doesn't display the correct text - some random characters before the battle and the before pointer message displays right after the battle. My Venusaur doesn't evolve into Mega Venusaur (0x19b, replaced Chimeco), even though it is holding the leaf stone (0x62). Please help, and thank you in advance.

P.S. I am using JPAN's Fire Red Hacked Engine, thats why there are some specials.

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
That's because your script is... Impossible. The two pointers in the trainer battle 0x0 command can ONLY point to text, all the rest of your script will never happen.

Have a look at the trainerbattle 0x1 command (also in this thread). Also please make sure that your message pointers only point to message. They don't even need a 'goto' - your @beaten is the only message you've done correctly.

Squeetz

ROM Hacker

Age 25
Male
Norway
Seen August 9th, 2021
Posted December 16th, 2018
236 posts
9.9 Years
I need help... I'm trying to make scripts in Fire red, but every time I add one, and I walk into the script, the game just crashes. I have no idea what I'm doing wrong. (I'm a noob to scripting, however)

This is a short script I wrote just to paste here:
Spoiler:
'---------------
#org 0x740000
lock
msgbox 0x874000C MSG_NORMAL '"Moo."
release
end


'---------
' Strings
'---------
#org 0x74000C
= Moo.