Advertiser Content

Tutorial Basics of Scripting Page 2

Started by destinedjagold July 6th, 2009 5:11 PM
  • 18091 views
  • 33 replies
Male
Seen December 14th, 2012
Posted December 14th, 2012
1 posts
6.9 Years
Man. I hate bothering people with noob questions. Anyway. My script completely works untill the end.
When I talk with the trainer after the battle the messagebox with "Can you feel the despair" does not appear.
This is my script:

#dynamic 0x800000

#org @start
trainerbattle 0x0 0x001 0x0 @begin @what?
msgbox @beaten 0x6
release
end

#org @begin
= We're back!!

#org @what?
= As if I'm alone..

#org @beaten
= Can you feel the despair?

.parado✗

paranormal user

Age 23
Male
Ha✗land
Seen November 10th, 2013
Posted March 2nd, 2013
38 posts
7.2 Years
@Zeoka
Maybe you still use XSE 1.0.0.0
If that is the case, instead of msgbox @pointer 0x6
you write..

msgbox @pointer
callstd 6

@AriArk
with \L you can make a new line.
with \p you can open a clear new msgbox.

If you use \p once, you must use \n and then \l afterwards :)
If you are interested in a german romhacker forum, go to

www.board.romresources.net

;) I'm registered under the name: "Laz0r" there.

AriArk

Survey Corps

Age 18
Male
Somewhere.. Over the rainbow
Seen January 27th, 2015
Posted January 6th, 2015
136 posts
9.3 Years
@Zeoka
Maybe you still use XSE 1.0.0.0
If that is the case, instead of msgbox @pointer 0x6
you write..

msgbox @pointer
callstd 6

@AriArk
with \L you can make a new line.
with \p you can open a clear new msgbox.

If you use \p once, you must use \n and then \l afterwards :)
Thanks - that worked, if it doesn't take a huge amount of time, could you explain how flags work too. I go to prof.birch's lab to get Riolu but before that I could go onto the route and see Missingno (i'm not 100% sure if this is what flags are).

.parado✗

paranormal user

Age 23
Male
Ha✗land
Seen November 10th, 2013
Posted March 2nd, 2013
38 posts
7.2 Years
Flags are nothing else than "checkers" in a Pokémon Game.
If someone gives you an item, you set a flag, that he can't give it to you twice, three times, endless.

It works this way..

#dynamic 0xXXXXX
#org @start
checkflag 0xyour_flag
if 0x1 call @got_it <---- this checks if the flag 0xyour_flag is set. If 0x1 (yes), call a pointer.
giveitem 0xItem 0xAmount 0x0 0x0 0x0
waitfanfare
closeonkeypress
setflag 0xyour_flag <---- Sets a flag. I prefer starting at 0x450 up to 0x7FF and 0x900-0xFFF
end

#org @got_it
end

Well, if you click the person again, it will automatically jump to @got_it and the script ends.
Attention! You can set every flag only once!
If you set for example setflag 0x500, you can check this flag everytime, to remove it, type

clearflag 0xyour_flag

Hope I helped :)
If you are interested in a german romhacker forum, go to

www.board.romresources.net

;) I'm registered under the name: "Laz0r" there.

destinedjagold

You Can Contact me in PC's Discord

Age 29
Male
Philippines
Seen October 16th, 2019
Posted May 6th, 2019
8,596 posts
12.5 Years
I have one more question - how do you add the POKéMON tab on the menu if you don't have a starter that you chose from professor birch's case.
If I recall correctly, you would need to add the code...
setflag 0x800
...to your script.

Advertiser Content