Sierra's MEGA-HUGE XSE Scripting Tutorial Page 41

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies
Male
Seen September 6th, 2015
Posted May 23rd, 2014
4 posts
9.6 Years
Never mind, i used variables instead of flags now (thanks to Magic for showing me an info post).
This works fine now :)

Also, I have an advance map related question, mind if I ask that too?

If yes, here it is, else I'll remove it in a bit
Whenever I make a new map and insert it, it's called LITTLEROOT TOWN by default, even though when I clicked "Create new map" i gave it the name "Newbore Town" ;O
This means that it can't be renamed without renaming the original LITTLEROOT TOWN too, which is quite annoying haha.
Edit 2:
Do you have steam?
It's easier to talk there :D

qaz015393

pokemon revenge developer

Age 32
Male
Seen 18 Hours Ago
Posted 5 Days Ago
785 posts
13.8 Years
Thanks for the tut & for still being around. Anyway I ran into an error, I wanted to make a new trainer battle & have him give u a badge & item then move. Then when I tried to debug it I got this error

"Too less parameters on line 27. The correct number is 3"
I don't know what they mean. I'm re-learning how to script.
Anyway here is the script can you/some1 else help me fix it:

Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
textcolor 0x0
msgbox @2 0x6
applymovement 0x5 @move1
waitmovement 0x0
msgbox @7 0x6
trainerbattle 0x1 0x001 0x0 @before @after @later
end

#org @before
= Show me what you got!

#org @after
= Hmmm, not bad.

#org @later
msgbox @3 0x6
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
msgbox @5 0x6
giveitem 0x147 0x1
setflag 0x820
msgbox @6 0x6
closeonkeypress
applymovement 0x5 @move2
waitmovement 0x0
hidesprite 0x5
setflag 0x200
setvar 0x4011 0x1
release
end

#org @2
= Light: ok let me double check the\nlist.\l...

#org @3
= Light: I found this after I beat a\nmember of Team Dark some time ago.\lI don't know what it is but I\lthink it may help out.

#org @4
= \v\h01 recieved a shadow badge!

#org @5
= Light: Oh, and please take this\nas well.

#org @6
= Light: Good job. I'm going to\nfinish getting the snacks. The\lmeeting place is in a secret\lplace thanks to Ryuaski. So I'll\lmeet you there.

#org @7
= Lght: Hello. You must be Red. I'm\ngetting snacks for the meeting.\lLets battle and see what you got.


#org @move1
#raw 0x62 0xA 0xFE

#org @move2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

POKEMON REVENGE TEAM IS looking for members APPLY HERE so the hack can continue.

3Ds Fc= 0619-4312-9526 IgN is Near My trade shop is here

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
Thanks for the tut & for still being around. Anyway I ran into an error, I wanted to make a new trainer battle & have him give u a badge & item then move. Then when I tried to debug it I got this error

I don't know what they mean. I'm re-learning how to script.
Anyway here is the script can you/some1 else help me fix it:

Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
textcolor 0x0
msgbox @2 0x6
applymovement 0x5 @move1
waitmovement 0x0
msgbox @7 0x6
trainerbattle 0x1 0x001 0x0 @before @after @later
end

#org @before
= Show me what you got!

#org @after
= Hmmm, not bad.

#org @later
msgbox @3 0x6
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
msgbox @5 0x6
giveitem 0x147 0x1
setflag 0x820
msgbox @6 0x6
closeonkeypress
applymovement 0x5 @move2
waitmovement 0x0
hidesprite 0x5
setflag 0x200
setvar 0x4011 0x1
release
end

#org @2
= Light: ok let me double check the\nlist.\l...

#org @3
= Light: I found this after I beat a\nmember of Team Dark some time ago.\lI don't know what it is but I\lthink it may help out.

#org @4
= \v\h01 recieved a shadow badge!

#org @5
= Light: Oh, and please take this\nas well.

#org @6
= Light: Good job. I'm going to\nfinish getting the snacks. The\lmeeting place is in a secret\lplace thanks to Ryuaski. So I'll\lmeet you there.

#org @7
= Lght: Hello. You must be Red. I'm\ngetting snacks for the meeting.\lLets battle and see what you got.


#org @move1
#raw 0x62 0xA 0xFE

#org @move2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
You forgot what type of message will appear after the player receives the item.
From what I can see, it looks like an NPC will give them player an item, so...
giveitem 0x147 0x1 msg_obtain

qaz015393

pokemon revenge developer

Age 32
Male
Seen 18 Hours Ago
Posted 5 Days Ago
785 posts
13.8 Years
You forgot what type of message will appear after the player receives the item.
From what I can see, it looks like an NPC will give them player an item, so...
giveitem 0x147 0x1 msg_obtain

Thanks for the help man. That worked now it works [from what I see. Im not insert it in my rom yet].

POKEMON REVENGE TEAM IS looking for members APPLY HERE so the hack can continue.

3Ds Fc= 0619-4312-9526 IgN is Near My trade shop is here
Seen December 25th, 2022
Posted October 28th, 2022
36 posts
16.9 Years
I'm sorry if this is the wrong thread, but here it goes...

I'm having problems with the script boxes (you step on the tile and the script happens).

The script (let's call script X) happens with no problems whatsoever in a building, if I put a level script (script Y).

But where there isn't any level script (no script Y), such as cities, when stepping on the tile with the script X, one of the two things happen:
1. The game freezes
2. The script doesn't happen

I've followed the tutorial in levelscripts according to the ones in pokecommunity.

My question is, how to make scripts work without using level scripts?

I think the problem is with setvar, but if you could give me some kind of tutorial, I would be more than happy.

Thanks in advance ;)

qaz015393

pokemon revenge developer

Age 32
Male
Seen 18 Hours Ago
Posted 5 Days Ago
785 posts
13.8 Years
I'm wondering how in the intro for fire red, how i can start off in the home town and make a battle script where the player losses and then after that it fades into another scene in a lab where some story occurs. Then the player walks out [to be clear I wanted to have the player sprite to be hidden then show up when it needs to. Do I need to have the hide sprite near the beginning of the script then have the show sprite later when i want it?].

Now is there something different that needs to happen in the beginning battle script for the player to lose so all that intro story can only happen once.

And how can the hero sprites appear at the right time and be the right gender.

Im asking this bc like in R/E/S when u pick brandon and may is your rival. I wanted to make the same script so when u pick a gender the story is played as that hero and the other 1 is a rival. I would like to know how that works. Is there something else adding so the Ow sprite and trainer sprite is changed when 1 gender is picked.

POKEMON REVENGE TEAM IS looking for members APPLY HERE so the hack can continue.

3Ds Fc= 0619-4312-9526 IgN is Near My trade shop is here

KillerKrabs

Age 29
Male
Arizona
Seen June 5th, 2021
Posted August 10th, 2014
9 posts
9.5 Years
Total noob here. I cleared out the memory of FR using an external tool. It's supposed to delete all non-essential memory so you can start from scratch on a game and only have the original maps as a reference.

The only problem I've ran into so far is that when I lose a battle, I warp to some weird-ass building and I'm stuck walking around a closed off room. I think it's the top left corner of Safron's gym.

I launched the unedited FR and tested what what happen if I lost. I warped back to what appeared to be the "mom's" house as a death point. What she said didn't match up with anything in the original FR scrips, so I'm very confused and don't have a reference to even see what makes you warp there upon losing a battle. How do I get this back in my hacked ROM, or set another death point?
Seen December 30th, 2014
Posted December 30th, 2014
12 posts
9.1 Years
Hi. In a lot of pokemon games (such as firered) Your rival just walks up to you and has a battle if you step on a certain spot. How would a script like this look? Could you give me an example of one?
I am working on a FR hack about deoxeys and need a lot of help! I have already
implmented lots of gen 4 and gen 5 pokemon in the game. I am working on mapping
right now, but can't get applymovement of givepokmo commands to work. If you
could give me some help, It would be a great help!
Age 23
Male
Portugal
Seen July 5th, 2021
Posted October 26th, 2014
287 posts
10 Years
Hey, I've been wondering, I saw a tutorial on Youtube about a year ago, where you could basiclly change the sprite of the hero
The video has been deleted though
The video was on PokeScript, no ASM required, FireRed as base and it was on a script tile
He switched from Red to a Rocket Grunt
The Youtuber was PurpleSonik418
Even if you don't know how to do it, it would be great if you had a Rom base with that
Wiht would truly make my day
Working on:


#fasterSneasel :D (nohomo)

Coolest IRC with the coolest people in the coolest rooms:
http://chat.linkandzelda.com:9090/?channels=romhacking,gogo,discovery,fluorite

AluminiumOxide

Aka Ansirent

Male
India
Seen December 7th, 2015
Posted May 4th, 2015
867 posts
9.6 Years
Hey i really loved your tutorial. Because of your tutorial one of my friend is now good in scripting. I have also read your tutorial it helped me a lot really thank you.

My Club |Paired With IndianCharizard |
"I CAN'T LET YOU TOUCH MY FAMILY!!!!!"

Male
Seen July 13th, 2014
Posted July 9th, 2014
30 posts
9.2 Years
Much I am really, really new to scripting as well to this whole hacking thing. Much your script tutorial helps and all. There some things I don't quite understand : / Now not sure if this has been explained or not...

For example exactly how do you insert, the script codes. Into Advancemap 1.92 onto like say a Sprite? Like a NPC who will give a regular message or statement...How will I be able to insert it into the game? Cause after putting the script in...and then reopen the NPC script...it disappears. Am I doing something wrong [and sorry, I don't know how to take screen shots off from desktop : / ]
Hacks I support:



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
Much I am really, really new to scripting as well to this whole hacking thing. Much your script tutorial helps and all. There some things I don't quite understand : / Now not sure if this has been explained or not...

For example exactly how do you insert, the script codes. Into Advancemap 1.92 onto like say a Sprite? Like a NPC who will give a regular message or statement...How will I be able to insert it into the game? Cause after putting the script in...and then reopen the NPC script...it disappears. Am I doing something wrong [and sorry, I don't know how to take screen shots off from desktop : / ]
I have a tutorial for that ~> clicky

Seen July 29th, 2014
Posted July 29th, 2014
1 posts
8.8 Years
Thanks for the tutorial, very useful however i am getting a problem and i have no idea why

This is my script before compilation:
#dynamic 0x456776
#org @start
msgbox @1 0x2
end

#org @1
= Hello!\nI used to be a trainer!\Good Times! I wish i could do it again!
And after Compilation:
'-----------------------
#org 0x456777
msgbox 0x845677F '"Hello!\nI used to be a trainer!!Goo..."
end


'---------
' Strings
'---------
#org 0x45677F
= Hello!\nI used to be a trainer!!Good Times! I wish i could do it again!
I then insert the offset it gives me after compilation into the script offset box of the chubby man person event in pallet town(with 00 before it so it can find it.)

Then, after saving, i run it in virtual boy advance and go to the guy and when clicked it plays the sound *tinkle* then nothing happens and the guy continues walking.

I can't see a problem, please help.

Thanks

Programs:
AdvanceMap
XSE
FSF
Male
Seen June 16th, 2018
Posted June 2nd, 2015
24 posts
8.8 Years
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.)
Want to watch boring and horrible Youtube videos? Check out my channel. :P
Male
Calgary AB Canada
Seen May 30th, 2018
Posted May 24th, 2018
109 posts
9.3 Years
Thanks for the tutorial, very useful however i am getting a problem and i have no idea why

This is my script before compilation:
#dynamic 0x456776
#org @start
msgbox @1 0x2
end

#org @1
= Hello!\nI used to be a trainer!\Good Times! I wish i could do it again!
And after Compilation:
'-----------------------
#org 0x456777
msgbox 0x845677F '"Hello!\nI used to be a trainer!!Goo..."
end


'---------
' Strings
'---------
#org 0x45677F
= Hello!\nI used to be a trainer!!Good Times! I wish i could do it again!
I then insert the offset it gives me after compilation into the script offset box of the chubby man person event in pallet town(with 00 before it so it can find it.)

Then, after saving, i run it in virtual boy advance and go to the guy and when clicked it plays the sound *tinkle* then nothing happens and the guy continues walking.

I can't see a problem, please help.

Thanks

Programs:
AdvanceMap
XSE
FSF
Try this

Spoiler:
#dynamic 0x800002
#org @start
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= Hello!\nI used to be a trainer!\Good Times! I wish i could do it again!

It worked fine for me, remember to copy paste the offset you get for @start

Thanks so much for this!

However, I have a problem. I'm not sure if anybody else who has posted above me actually has had it answered yet, 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.)
What do you mean? Do you mean adding scripts to wrap tiles? Cause that is impossible, but you can add script tiles before a wrap if you want to write a message or something.
Male
Seen June 16th, 2018
Posted June 2nd, 2015
24 posts
8.8 Years
@Fae Bladez
~ It talks about coding the Warps. (In the example, he used warp 0x3 0x0 0x2 0x0 0x0)
- I don't know where to code that.

EDIT: Also, Advance Map also doesn't let me show a trainer for a trainer battle. I can't figure out why...
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
@Fae Bladez
~ It talks about coding the Warps. (In the example, he used warp 0x3 0x0 0x2 0x0 0x0)
- I don't know where to code that.

EDIT: Also, Advance Map also doesn't let me show a trainer for a trainer battle. I can't figure out why...
Show what? If you're using A-map 1.95 there's no checkbox for trainer, you just have to change its id. If that's what you mean? Cause I don't get it


Male
Seen June 16th, 2018
Posted June 2nd, 2015
24 posts
8.8 Years
Show what? If you're using A-map 1.95 there's no checkbox for trainer, you just have to change its id. If that's what you mean? Cause I don't get it
Oh. What do you change its ID to?

~ BTW - I meant like on Advance Map, I have a trainer there with the XSE stuff, but when I open up the game, none of the people on that page show up (Except Poké Balls that I inputted)
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
Oh. What do you change its ID to?

~ BTW - I meant like on Advance Map, I have a trainer there with the XSE stuff, but when I open up the game, none of the people on that page show up (Except Poké Balls that I inputted)
You need to input the trainer's id too. Make sure there's not a single setflag or anything that makes your trainers disappear.


Male
Seen June 16th, 2018
Posted June 2nd, 2015
24 posts
8.8 Years
You need to input the trainer's id too. Make sure there's not a single setflag or anything that makes your trainers disappear.
Yes, there are no set-flags for disappearance or a #raw for hide either.
Also, no trainers there can be seen except Poké Balls.

~ What Trainers ID do I put?
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
Yes, there are no set-flags for disappearance or a #raw for hide either.
Also, no trainers there can be seen except Poké Balls.

~ What Trainers ID do I put?
A-map, right side. Click on the NPC first then go see the right side, find the trainer id or id


Male
Seen June 16th, 2018
Posted June 2nd, 2015
24 posts
8.8 Years
A-map, right side. Click on the NPC first then go see the right side, find the trainer id or id
So I looked at PET, and the ID is 001 (The first one, right?) So do I input it as 0001?
Want to watch boring and horrible Youtube videos? Check out my channel. :P