Sierra's MEGA-HUGE XSE Scripting Tutorial Page 39

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies

JoeyBaboey

Charmandasaur

Male
Seen September 15th, 2014
Posted February 23rd, 2014
15 posts
9.3 Years
Download XSE 1.1.1 and the script was also the problem because there's wrong.
It still won't let me compile it.
Thanks in Advance! ;):pink_nod:

Wild WINDOW appeared!
Go PERSON!
WINDOWS used OPEN
PERSON is frozen!
Go WINDOW!
WINDOW used COLD DRAFT!
It's not very affective...
WINDOW used CLOSE!
Wild WINDOW fled!

JoeyBaboey

Charmandasaur

Male
Seen September 15th, 2014
Posted February 23rd, 2014
15 posts
9.3 Years
You must open your ROM in XSE first ;)
If you are talking to me I would like to know how, I can't seem to find an option for it, and if this is the case...
Thanks in Advance! ;):pink_nod:

Wild WINDOW appeared!
Go PERSON!
WINDOWS used OPEN
PERSON is frozen!
Go WINDOW!
WINDOW used COLD DRAFT!
It's not very affective...
WINDOW used CLOSE!
Wild WINDOW fled!

Sniper

ふゆかい

Male
Philippines
Seen August 9th, 2016
Posted June 5th, 2016
1,412 posts
9.5 Years
If you are talking to me I would like to know how, I can't seem to find an option for it, and if this is the case...
Just click the blue folder on top..


If loading your rom in XSE doesn't fix your issue, your script must be wrong.


JoeyBaboey

Charmandasaur

Male
Seen September 15th, 2014
Posted February 23rd, 2014
15 posts
9.3 Years
... Wowwww, I should go scream at something now...

I know everyone is probably sick of my problems, and I apologize for that but I have another...

This script works perfectly, except for the fact that the line:
Spoiler:
applymovement 0x1 @momove2
doesn't seem to work in game, and when I step on the tile after the script has been done, the game freezes.

Here is the full script
Spoiler:
#dynamic 0x801400
#org 0x801400
checkflag 0x748
if 0x1 goto 0x8801553
lock
applymovement 0x1 @momove
lock
setflag 0x748
msgbox 0x8801435 MSG_NORMAL '"Mom: [player], it is your sister. ..."
setflag 0x828
checkgender
compare LASTRESULT 0x0
if 0x2 goto 0x88014B7
goto 0x88014D1

'---------------
#org 0x801553
release
end
'---------------
#org 0x8014B7
msgbox 0x88014EB MSG_NORMAL '"Here [player] take your Growlithe ..."
cry 0x3A 0x0
givepokemon 0x3A 0x7 0xD7 0x0 0x0 0x0
applymovement 0x1 @momove2
release
end

'---------------
#org 0x8014D1
msgbox 0x880151F MSG_NORMAL '"Here [player] take your Vulpix and..."
cry 0x25 0x0
givepokemon 0x25 0x7 0xD7 0x0 0x0 0x0
applymovement 0x1 @momove2
release
end
#org @playermove
#raw 0x13
#raw 0x2
#raw 0xFE
#org @momove
#raw 0xD
#raw 0xD
#raw 0x0F
#raw 0x0F
#raw 0x0F
#raw 0xFE
#org @momove2
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x7
#raw 0xFE


'---------
' Strings
'---------
#org 0x801435
= Mom: [player], it is your sister. Last \nnight she was kidnapped by Team\lWaxing Darkness.

#org 0x8014EB
= Here [player] take your Growlithe \nand go find your \lsisteHere [player] take your Vulpix and go\nfind your sister. Start\lat Serenity Town past route\l2.

#org 0x80151F
= Here [player] take your Vulpix and go\nfind your sister. Start\lat Serenity Town past route\l2.
Thanks in Advance! ;):pink_nod:

Wild WINDOW appeared!
Go PERSON!
WINDOWS used OPEN
PERSON is frozen!
Go WINDOW!
WINDOW used COLD DRAFT!
It's not very affective...
WINDOW used CLOSE!
Wild WINDOW fled!

JoeyBaboey

Charmandasaur

Male
Seen September 15th, 2014
Posted February 23rd, 2014
15 posts
9.3 Years
Btw why lock after applymovement...?[/B]
For some reason it was releasing the player so I thought that would fix it.

Edit: Okay, that helps, but I want to know why my game keeps freezing when I step back on the tile, and when I play as a girl trainer, it gives me the Growlithe, but then it gives me the Eevee for the boy trainer too.
Thanks in Advance! ;):pink_nod:

Wild WINDOW appeared!
Go PERSON!
WINDOWS used OPEN
PERSON is frozen!
Go WINDOW!
WINDOW used COLD DRAFT!
It's not very affective...
WINDOW used CLOSE!
Wild WINDOW fled!

Seen September 24th, 2020
Posted November 26th, 2018
2,143 posts
14.7 Years
So I'm having a problem here. Whenever I enter a script, the sprite appears in the wrong position and crashes the game upon speaking to it. i think I added it wrong. I got passed that. The sprite appears in the correct place now, however, the script does not activate. the game just lets out the little beep when you press a, but no chatbox pops up. just a basic talking script.

It's in the spoiler down below, although I don't think it has anything to do with how I've written it, but inserted it.

Spoiler:
#dynamic 0x71A23C
#org @start
lock
faceplayer
msgbox @talk 0x6
release
end

#org @talk
= Hey there!\nWhat's up?

destinedjagold

You can contact me in PC's discord server...

Age 32
Male
Seen 2 Days Ago
Posted March 24th, 2023
8,579 posts
16 Years
So I'm having a problem here. Whenever I enter a script, the sprite appears in the wrong position and crashes the game upon speaking to it. i think I added it wrong. I got passed that. The sprite appears in the correct place now, however, the script does not activate. the game just lets out the little beep when you press a, but no chatbox pops up. just a basic talking script.

It's in the spoiler down below, although I don't think it has anything to do with how I've written it, but inserted it.

Spoiler:
#dynamic 0x71A23C
#org @start
lock
faceplayer
msgbox @talk 0x6
release
end

#org @talk
= Hey there!\nWhat's up?
- Check if you have opened the correct ROM with XSE.
Spoiler:

- Make sure that you have copied the offset XSE provides you after you compiled it.
Spoiler:

- Make sure that you have pasted the correct offset to your NPC.

Seen September 24th, 2020
Posted November 26th, 2018
2,143 posts
14.7 Years
- Check if you have opened the correct ROM with XSE.
Spoiler:

- Make sure that you have copied the offset XSE provides you after you compiled it.
Spoiler:

- Make sure that you have pasted the correct offset to your NPC.
Yes, that's all done correctly. I just re-did it so as to ensure. I was reading that it could have something to do with a bad rom file? When I compile the script and press the copy button, do I have to press save? When I do it asks to save something like a log file or a rubix cube file or something. I don't think I have to do any of that, do I?

destinedjagold

You can contact me in PC's discord server...

Age 32
Male
Seen 2 Days Ago
Posted March 24th, 2023
8,579 posts
16 Years
Yes, that's all done correctly. I just re-did it so as to ensure. I was reading that it could have something to do with a bad rom file? When I compile the script and press the copy button, do I have to press save? When I do it asks to save something like a log file or a rubix cube file or something. I don't think I have to do any of that, do I?
Nah, no need to click that Save button.
Anyway, try your script in a clean ROM and see if it'll work.

Seen September 24th, 2020
Posted November 26th, 2018
2,143 posts
14.7 Years
Nah, no need to click that Save button.
Anyway, try your script in a clean ROM and see if it'll work.
I have. Could I be downloading bad roms? After the initial failure, I wiped the ROM files that I touched and downloaded them again from the website. When it failed again, I downloaded Leaf Green as opposed to Fire Red and it didn't change anything. When you told me to double-check I loaded the proper ROM, I again wiped the files and re-downloaded them, this time renaming it so as to keep track of it. Anyway, I downloaded both of the ROMs from the same website, if it could have something to do with them being bad ROMs.
Male
Seen June 14th, 2020
Posted March 16th, 2014
10 posts
12.8 Years
I have. Could I be downloading bad roms? After the initial failure, I wiped the ROM files that I touched and downloaded them again from the website. When it failed again, I downloaded Leaf Green as opposed to Fire Red and it didn't change anything. When you told me to double-check I loaded the proper ROM, I again wiped the files and re-downloaded them, this time renaming it so as to keep track of it. Anyway, I downloaded both of the ROMs from the same website, if it could have something to do with them being bad ROMs.
Hey.
Looking at what you have said here, I think I know your problem. It used to happen to me. When you compile the script, do not press copy and then paste it in, type it in manually using the code given. I know it sounds quite silly but it happened to me when I first started, for some reason, when I pasted it after copying the code, it pasted multiple times until the field was full.
So if the code was 07FX56 and I pasted it in using the copy button from XSE, it would appear something like 07FX5607FX. It was just pasting it and then pasting the start of it again.
If you manually type it from now on, you should not get this error.

destinedjagold

You can contact me in PC's discord server...

Age 32
Male
Seen 2 Days Ago
Posted March 24th, 2023
8,579 posts
16 Years
Hey.
Looking at what you have said here, I think I know your problem. It used to happen to me. When you compile the script, do not press copy and then paste it in, type it in manually using the code given. I know it sounds quite silly but it happened to me when I first started, for some reason, when I pasted it after copying the code, it pasted multiple times until the field was full.
So if the code was 07FX56 and I pasted it in using the copy button from XSE, it would appear something like 07FX5607FX. It was just pasting it and then pasting the start of it again.
If you manually type it from now on, you should not get this error.
We already discovered the problem: Advance Map 1.95.
I suggested that he use A-Map 1.92 and his scripts were working now.

Male
Seen June 14th, 2020
Posted March 16th, 2014
10 posts
12.8 Years
We already discovered the problem: Advance Map 1.95.
I suggested that he use A-Map 1.92 and his scripts were working now.
Ahh okay, I didn't know. :P

I don't really understand what the problem with advance map 1.95 is?
That's the one I use and it word fine for me.
Male
Seen March 2nd, 2016
Posted April 17th, 2014
9 posts
9.7 Years
I have a problem that I hope someone can solve. Whenever I compile everything into my ROM, all of the added player events scripts never pop up. I hear the "Ding" that I pressed the A button but nothing happens. All of the scripts that were already in the game that I modified work, but none of the new scripts. Can anyone help me out?

X and Y animatedSprites

Pokemon Vortex Version

Sniper

ふゆかい

Male
Philippines
Seen August 9th, 2016
Posted June 5th, 2016
1,412 posts
9.5 Years
I have a problem that I hope someone can solve. Whenever I compile everything into my ROM, all of the added player events scripts never pop up. I hear the "Ding" that I pressed the A button but nothing happens. All of the scripts that were already in the game that I modified work, but none of the new scripts. Can anyone help me out?
Can you let us see your script first?


DaisukE

Just feel it burning ^^

Male
Somewhere in this empty eternity
Seen July 27th, 2017
Posted July 26th, 2017
113 posts
10 Years
I have a problem that I hope someone can solve. Whenever I compile everything into my ROM, all of the added player events scripts never pop up. I hear the "Ding" that I pressed the A button but nothing happens. All of the scripts that were already in the game that I modified work, but none of the new scripts. Can anyone help me out?
Are u sure u are adding var number and unknown

Can anyone help how to make the images appear of both the trainer and opponent like when before a elite four battle
Búrñiñg Émøtiøn§

Sniper

ふゆかい

Male
Philippines
Seen August 9th, 2016
Posted June 5th, 2016
1,412 posts
9.5 Years
Can anyone help how to make the images appear of both the trainer and opponent like when before a elite four battle
Read the tutorial here. You should skip to part 3 if you're not gonna change sprites.


Male
Seen March 23rd, 2014
Posted March 20th, 2014
1 posts
9.2 Years
compare LASTRESULT 0x1 (listed in the givepokemon script) doesn't appear to function properly. Here is the script i am trying to make:

'---------------
#dynamic 0x800000
#org @start
lock
msgbox @content 0x6
msgbox @confirm 0x5
compare LASTRESULT 0x1
if 0x1 call @obtain
else goto @end

#org @obtain
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 call @name
release
end

#org @end
msgbox @fail 0x6
release
end

#org @3
= You obtained a Charmander!

#org @4
= [black_fr]Would you like to give a\nnickname to Charmander?

#org @name
call 0x1A74EB
return

#org @content
= This Pok\h1Bball contains a Charmander.

#org @confirm
= Will you choose Charmander?

#org @fail
= You cannot take any more.

It is supposed to function similar to the pokeballs in oak's lab but it keeps giving me an error.