Script Help Thread (DO NOT REQUEST SCRIPTS) Page 160

Started by HackMew December 20th, 2008 5:10 AM
  • 625740 views
  • 9682 replies

gl3500

Glcelebi The Rom Hacker

Male
South Africa
Seen January 23rd, 2015
Posted June 3rd, 2010
11 posts
14 Years
@gl3500:
Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end
#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x03 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
releaseall
end


#org @hi2
lockall
msgbox @weird 0x6
closeonkeypress
releaseall


#org @weird
= .......


EDIT: It would actually be better if you did this instead:
Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi
applymovement 0x03 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x03 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
release
end

#org @hi
msgbox @weird 0x2
release
end


#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @weird
= .......

Makes it a little simpler, eh?
Yes and thanx, i got it working, i do have one other question though, i tried testing the PC function with this script. What i wanted it to do was to display message @10, when closed by pressing a, the screen will fade to black, play fanfare and ONLY when fanfare is done, the screen will fade back to normal, open up PC, allow use of PC WHILE keeping the hero unable to move until the PC is closed, finally, when the PC is closed, i want it to display message @11 and this message will again, only close when a is pushed. Can somebody please help with this, ithis is my first time trying a PC script and i cannot work out what i am doing wrong, i have tried more than 10 scripts for it and none have given the results i want, can anybody please point out what i di wrong. Thanx
Spoiler:
#dynamic 0x71ADD9

#org @start
lock
faceplayer
msgbox @10 0x4
closeonkeypress
fadescreen 0x1
fanfare 0x13D
waitfanfare
special 0x3C
fadescreen 0x0
end
msgbox @11 0x6

#org @10
= Welcome to the computer\ndisguised as a Pokeball!
#org @11
= Thank you for using\nthis fake system! XD
release
end
P.s The PC was using the pokeball sprite that is used for items, so do not think that i needed the lock and faceplayer commands.

Also, going back to my script from earlier, everything is working, i just have one problem now, when the sprite goes through the door. I wanted the messagebox @weird to automatically popup and you close it with a, originally my script made the sprite go through the door and if i walked back over the tile with the script, it shows the ".....". I now edited it to this in the spoiler and now nothing appears if i rewalk over it, now i know what the problem is with the "...." not reappearing, but it is not what i want. I want the "...." to popup automatically after the sprite has gone through the door and close when a is pressed, and if possible, how would i delay the message a bit? Finally, how do i make it so that when the "...." is shown and closed after pressing a, the "...." will not show again so that after the "...." has shown up and closed, the next time i step on the tile with the script, nothing will happen.

Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end

#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x04 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x04 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
hidesprite 0x800F
msgbox @weird 0x6
closeonkeypress
releaseall
end


#org @hi2
releaseall
end


#org @weird
= .......
[SIGPIC]
Click here to level up my license!


Waaaaaaaah! I used to be special as i was the only one that could travel through time, and then along comes dialga...

vietazn654

A sound soul dwells within me

Age 28
Male
Virginia
Seen August 21st, 2014
Posted July 26th, 2010
371 posts
13.2 Years
#dynamic 0x2166E0

#org @start
checkflag 0x1000
if 0x1 goto @done
applymovement 0xFF @move
waitmovement 0x0
msgbox @1 0x6
setflag 0x1000
release
end

#org @done
release
end

#org @move
#raw 0x57
#raw 0x03
#raw 0x03
#raw 0x01
#raw 0x01
#raw 0x03
#raw 0xFE

#org @1
= \v\h01: (W-wh-where am I?)\p(Hmm... There's only one way to\nfind out.)
It's for RUBY... The movement part won't work. It skips it and goes to the message.


EDIT: NVMNVMNVM! IT WORKS! =P

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
Male
Seen June 29th, 2010
Posted June 16th, 2010
23 posts
13 Years
Ok, so I'm going along scripting in XSE, when I try to compile the code, I get an error.

"Not enough free space found. Can not compile.
So I double check to make sure that there is in fact free space, and I notice that I have tons of it. Also, I can compile all parts of the script, unless I type in:
#dynamic 0xoffset
#org @start
at the beginning of the script (which has to be done for it to function.

What am I doing wrong?

(Also, when I compile the script in another program and get it working, I get a white screen at the beginning. What could cause that? I'm almost positive I'm not overwriting anything.)

Shiny Quagsire

I'm Still Alive, Elsewhere

Age 25
Male
Hoenn Safari Zone
Seen August 7th, 2020
Posted April 17th, 2017
697 posts
14 Years
Ok, so I'm going along scripting in XSE, when I try to compile the code, I get an error.
......
If you haven't tried, put this at the beginning:

#dynamic 0x800000
Male
Seen June 29th, 2010
Posted June 16th, 2010
23 posts
13 Years
If you haven't tried, put this at the beginning:

#dynamic 0x800000
Hmm. . . yes, I have tried that.
Still. XSE won't compile it, but PokeSvui does.
And, as soon as it's compiled, I get a white screen at the beginning.

Here's the script (offsets removed for now.)
Spoiler:
'-----------------------
#org 0xE3CF64
lockall
faceplayer
checksound
msgbox 0x8000001 '"It... moved?!"
callstd 0x6
cry 0x96 0x2
pause 0x28
waitcry
startwildbattle 0x96 0x50 0x0
setflag 0x1001
special 0x13B
clearflag 0x1001
special2 LASTRESULT 0xB7
compare LASTRESULT 0x1
if 0x1 goto 0x0000000
compare LASTRESULT 0x4
if 0x1 goto 0x0000001
compare LASTRESULT 0x5
if 0x1 goto 0x0000001
setflag 0x1002
releaseall
end

'-----------------------
#org 0x0000000
setflag 0x1002
'-----------------------
#org 0x0000001
setvar 0x8004 0x96

'---------
' Strings
'---------
#org 0x1
= It... moved?!


I know the script works because I was careful to save the state.
Seen May 21st, 2011
Posted January 15th, 2011
54 posts
14.2 Years
Alright, so after the third hidesprite command, the fourth doesn't work. The person event number is 10, so A in hex. I've used the exact same command, yet I fail to see what is wrong... I set the Person ID to 1003, just like the flag in the script.

Thanks in advance for any help.

Spoiler:

#dynamic 0x8033A1
#org @start
checkflag 0x828
if 0x1 goto @end
showpokepic 0x4 0x3 0x3
msgbox @char 0x5
compare 0x800D 0x1
if 0x0 goto @end
hidesprite 0x8
setflag 0x1000
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
hidepokepic
msgbox @rec 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare 0x800D 0x1
if 0x1 gosub @name
closeonkeypress
applymovement 0xFF @play1
waitmovement 0xFF
applymovement 0x5 @redwood
waitmovement 0x5
applymovement 0x4 @james
waitmovement 0x4
msgbox @redwood2 0x2
applymovement 0x4 @james2
waitmovement 0x4
applymovement 0xFF @play2
waitmovement 0xFF
applymovement 0x4 @james3
waitmovement 0x4
applymovement 0xFF @play3
applymovement 0x5 @redwood3
applymovement 0x4 @james4
waitmovement 0x0
msgbox @james12 0x6
hidesprite 0x7
setflag 0x1001
applymovement 0x4 @james5
waitmovement 0x4
applymovement 0xFF @play4
applymovement 0x5 @redwood4
waitmovement 0x0
msgbox @redwood12 0x2
applymovement 0x5 @redwood5
waitmovement 0x5
hidesprite 0x9
setflag 0x1002
applymovement 0x5 @redwood6
waitmovement 0x5
hidesprite 0xA
setflag 0x1003

applymovement 0x5 @redwood7
waitmovement 0x5
setflag 0x828
end
#org @char
= [blue_fr]Redwood: So you choose the\nCharmander then? A worthy choice\lfor a worthy trainer!
#org @end
closeonkeypress
hidepokepic
end
#org @rec
= [player] received the Charmander!
#org @name
call 0x1A74EB
return
#org @nick
= Would you like to give a\nnickname to Charmander?
#org @play1
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood
#raw 0x0
#raw 0xFE
#org @james
#raw 0x1
#raw 0xFE
#org @james2
#raw 0x10
#raw 0x12
#raw 0xFE
#org @play2
#raw 0x0
#raw 0xFE
#org @james3
#raw 0x12
#raw 0x11
#raw 0xFE
#org @play3
#raw 0x02
#raw 0xFE
#org @redwood3
#raw 0x02
#raw 0xFE
#org @james4
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x01
#raw 0xFE
#org @james5
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood2
= [blue_fr]Redwood: Good choice! Now it's your\nturn James.
#org @james12
= [blue_fr]James: I'll pick the Mudkip then!
#org @play4
#raw 0x01
#raw 0xFE
#org @redwood4
#raw 0x00
#raw 0xFE
#org @redwood12
= [blue_fr]Redwood: Excellent! Ah yes, I have\none last thing to give to you two.
#org @redwood5
#raw 0x11
#raw 0x11
#raw 0x22
#raw 0xFE
#org @redwood6
#raw 0x13
#raw 0x22
#raw 0xFE
#org @redwood7
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE
Age 28
Seen April 7th, 2014
Posted April 2nd, 2014
3,977 posts
15.8 Years
@gl3500:
Spoiler:
#dynamic 0x71ADD9

#org @start
lock
faceplayer
msgbox @10 0x4
closeonkeypress
fadescreen 0x1
fanfare 0x13D
waitfanfare
special 0x3C
fadescreen 0x0
msgbox @11 0x4
closeonkeypress
release
end


#org @10
= Welcome to the computer\ndisguised as a Pokeball!

#org @11
= Thank you for using\nthis fake system! XD

Give it a try.

@Metroid Die:
Remove all the other setflags except for the 0x828 flag. Set the person ID to 0828 of every OW you want to hide.

vietazn654

A sound soul dwells within me

Age 28
Male
Virginia
Seen August 21st, 2014
Posted July 26th, 2010
371 posts
13.2 Years
#dynamic 0x2167D1

#org @start
checkflag 0x1001
if 0x1 goto @done
applymovement 0x05 @move
waitmovement 0x0
applymovement 0x06 @move0
waitmovement 0x0
msgbox @1 0x6
applymovement 0x05 @move1
waitmovement 0x0
msgbox @2 0x6
applymovement 0x05 @move2
waitmovement 0x0
applymovement 0x06 @move3
waitmovement 0x0
applymovement 0xFF @move4
waitmovement 0x0
msgbox @3 0x6
setflag 0x1001
release
end

#org @done
release
end

#org @1
= [red_rs]CHIMECHO: Oh look, a BUNEARY!\p[black_rs]\v\h01: Wh-what? My name is\n\v\h01!\p[red_rs]CHIMECHO: Oh, really? You look\nlike a normal BUNEARY to me.\p[blue_rs]PINECO: Sorry if we're bothering\nyou, \v\h01. CHIMECHO is always\lhyper.

#org @2
= [red_rs]CHIMECHO: I know! How about you\nbecome in an EXPLORATION TEAM with\lus?\p[black_rs]\v\h01: An EXPLORATION TEAM?\p[blue_rs]PINECO: An EXPLORATION TEAM is\nwhen POKEMON form a team where\lthey go on missions.\p[black_rs]\v\h01: Well... Um...\p[red_rs]CHIMECHO: Great! Let's go to the\nMarket!

#org @3
= [red_rs]CHANSEY: Why hello there\nguys!\pCHIMECHO: Can you call the GUILD\nMASTER to see if we can go to him\lfor a team recruitment?\pCHANSEY: No problem!\p[black_rs]BEEP-BEEP!\p[red_rs]CHANSEY: Hello? Ah yes, a team\nwill be coming to you today.\pYes, yes, alright.\p[black_rs]BEEP-BEEP!\p[red_rs]CHANSEY: You guys may now go.\pCHIMECHO: Thanks!

#org @move
#raw 0x56
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x07
#raw 0x07
#raw 0x00
#raw 0xFE

#org @move0
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0xFE

#org @move1
#raw 0x56
#raw 0xFE

#org @move2
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0xFE

#org @move3
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0xFE

#org @move4
#raw 0x56
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0xFE
None of the movement scripts work besides the player's... <.<

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.

Loaf

Just loafing around...

Male
New Zealand
Seen November 20th, 2010
Posted November 20th, 2010
13 posts
13 Years
Urgently needing help on two things:

- Activating the Pokemon submenu in the menu. I have got my head around givepokemon, now I need to sort this out.

- How to get into a battle with a wild pokemon via activating a person based event with a pokemon sprite.


Thanks in advance.
ATL
Seen June 9th, 2015
Posted October 3rd, 2010
397 posts
14.2 Years
Urgently needing help on two things:

- Activating the Pokemon submenu in the menu. I have got my head around givepokemon, now I need to sort this out.

- How to get into a battle with a wild pokemon via activating a person based event with a pokemon sprite.


Thanks in advance.
Use XSE and:

1. Put setflag 0x828 in your script (or 0x800 if you're using ruby)

2. Use the command wildbattle 0x(pokemon # in hex) 0x(level in hex) 0x(item in hex)





Please warm my eggs...I'll be sure to return the favor

From now one, if you haven't contacted me yet....I will not accept hacks unless they are at least in progressing hacks. So if you want my help, get some screenshots first.

Ki77y666

I'm with stupid ^

Age 29
He/Him
Not installed yet
Seen January 19th, 2022
Posted January 19th, 2022
118 posts
14.9 Years
I am having a little trouble with a map script it works fine i game but at the end it brings up a message box saying "This is a test message. This is a signpost." and keeps repeating that message box. The settings in a-map are: Script type: 02 Validaes values, loads handler to 0x3000EB0.... Script offset: $6CDE6E Script offset 2: $DF840D Flag:7000 Value: 0000. I need help please and thank you

Here is the script it is in XSE:
'---------------
#org 0xDF840D
lock
setvar 0x7000 0x1
setflag 0x1500
hidesprite 0x6
checkflag 0x860
if 0x1 goto 0x8DF85F3
applymovement MOVE_PLAYER 0x8DF85EA
waitmovement 0x0
msgbox 0x8E5E50C MSG_NORMAL '"Prof. Elm: [player]! There you are..."
release
end

'---------------
#org 0xDF85F3
release
end


'---------
' Strings
'---------
#org 0xE5E50C
= Prof. Elm: [player]! There you are!\pI needed to ask you a favour.\pI have an acquaintance called Mr.\nPokémon.\pHe keeps on finding weird things and\nraving about his discoveries.\pAnyway, I just got an e-mail from him\nsaying that this time it's real.\pIt is intriguing, but we're busy with our\nPokémon research.\pCould you look into it for us?\pI'll give you a Pokémon for a partner.\pThey're all rare Pokémon that we just\nfound.\pGo on. Pick one!


'-----------
' Movements
'-----------
#org 0xDF85EA
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements

(\__/)
(='.'=) This Is Bunny. Copy And Paste Bunny Into
('')_('') Your Signature To Help Him Gain World Domination!!!!

GAMES I SUPPORT
Spoiler:





gl3500

Glcelebi The Rom Hacker

Male
South Africa
Seen January 23rd, 2015
Posted June 3rd, 2010
11 posts
14 Years
@gl3500:
Spoiler:
#dynamic 0x71ADD9

#org @start
lock
faceplayer
msgbox @10 0x4
closeonkeypress
fadescreen 0x1
fanfare 0x13D
waitfanfare
special 0x3C
fadescreen 0x0
msgbox @11 0x4
closeonkeypress
release
end


#org @10
= Welcome to the computer\ndisguised as a Pokeball!

#org @11
= Thank you for using\nthis fake system! XD

Give it a try.

@Metroid Die:
Remove all the other setflags except for the 0x828 flag. Set the person ID to 0828 of every OW you want to hide.
Thanx 4 the help, ill give it a try and see what happens. :-)

Thanx the PC script does work, i still have a problem with this script though, any ideas?
Spoiler:
#dynamic 0x71B364

#org @start
checkflag 0x202
if 0x1 goto @hi2
goto @hi
closeonkeypress
release
end

#org @clone
#raw 0x13
#raw 0x01
#raw 0xFE

#org @clonefinal
#raw 0x11
#raw 0x11
#raw 0xFE

#org @hi
lockall
applymovement 0x04 @clone
waitmovement 0x0
setdooropened 0x10 0xD
doorchange
applymovement 0x04 @clonefinal
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setflag 0x202
hidesprite 0x800F
msgbox @weird 0x6
closeonkeypress
releaseall
end


#org @hi2
releaseall
end


#org @weird
= .......


What i want to happen is have the sprite go through the door, have a slight delay, then the message "...." pops up and can only be closed with a. So far, i have tried the one above which i know will not bring up the "...." but thats not what i want, i want wat i sed above and i am not sure how to get this. Also, i only want the event to happen once.Any help appreciated. Thanx :-)
[SIGPIC]
Click here to level up my license!


Waaaaaaaah! I used to be special as i was the only one that could travel through time, and then along comes dialga...
Male
Seen July 24th, 2013
Posted June 13th, 2010
3 posts
13.1 Years
[b]Game: sapphire
[b]Type:
[b]Editor:
[b]Script: xse

when i press yes it goes to no. ive been looking for an up-to-date xse tutorial but i cant find any that explain boxset 0x5 well
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @question 0x5
compare LASTRESULT 0x0
if b_true goto @yes
msgbox @no 0x6
release
end

#org @question
= yes or no?

#org @yes
msgbox @ya 0x6
goto @done
release
end

#org @no
msgbox @na 0x6
goto @done
release
end

#org @ya
= you said ya!

#org @na
= you said na!

#org @done
msgbox @end 0x6
release
end

#org @end
= i love waffles

Screenshots and/or Videos:

how does the skittle company know what a rainbow tastes like
Male
Seen August 17th, 2016
Posted May 9th, 2015
673 posts
14.2 Years
Alright, so after the third hidesprite command, the fourth doesn't work. The person event number is 10, so A in hex. I've used the exact same command, yet I fail to see what is wrong... I set the Person ID to 1003, just like the flag in the script.

Thanks in advance for any help.

Spoiler:

#dynamic 0x8033A1
#org @start
checkflag 0x828
if 0x1 goto @end
showpokepic 0x4 0x3 0x3
msgbox @char 0x5
compare 0x800D 0x1
if 0x0 goto @end
hidesprite 0x8
setflag 0x1000
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
hidepokepic
msgbox @rec 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare 0x800D 0x1
if 0x1 gosub @name
closeonkeypress
applymovement 0xFF @play1
waitmovement 0xFF
applymovement 0x5 @redwood
waitmovement 0x5
applymovement 0x4 @james
waitmovement 0x4
msgbox @redwood2 0x2
applymovement 0x4 @james2
waitmovement 0x4
applymovement 0xFF @play2
waitmovement 0xFF
applymovement 0x4 @james3
waitmovement 0x4
applymovement 0xFF @play3
applymovement 0x5 @redwood3
applymovement 0x4 @james4
waitmovement 0x0
msgbox @james12 0x6
hidesprite 0x7
setflag 0x1001
applymovement 0x4 @james5
waitmovement 0x4
applymovement 0xFF @play4
applymovement 0x5 @redwood4
waitmovement 0x0
msgbox @redwood12 0x2
applymovement 0x5 @redwood5
waitmovement 0x5
hidesprite 0x9
setflag 0x1002
applymovement 0x5 @redwood6
waitmovement 0x5
hidesprite 0xA
setflag 0x1003

applymovement 0x5 @redwood7
waitmovement 0x5
setflag 0x828
end
#org @char
= [blue_fr]Redwood: So you choose the\nCharmander then? A worthy choice\lfor a worthy trainer!
#org @end
closeonkeypress
hidepokepic
end
#org @rec
= [player] received the Charmander!
#org @name
call 0x1A74EB
return
#org @nick
= Would you like to give a\nnickname to Charmander?
#org @play1
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood
#raw 0x0
#raw 0xFE
#org @james
#raw 0x1
#raw 0xFE
#org @james2
#raw 0x10
#raw 0x12
#raw 0xFE
#org @play2
#raw 0x0
#raw 0xFE
#org @james3
#raw 0x12
#raw 0x11
#raw 0xFE
#org @play3
#raw 0x02
#raw 0xFE
#org @redwood3
#raw 0x02
#raw 0xFE
#org @james4
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x01
#raw 0xFE
#org @james5
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood2
= [blue_fr]Redwood: Good choice! Now it's your\nturn James.
#org @james12
= [blue_fr]James: I'll pick the Mudkip then!
#org @play4
#raw 0x01
#raw 0xFE
#org @redwood4
#raw 0x00
#raw 0xFE
#org @redwood12
= [blue_fr]Redwood: Excellent! Ah yes, I have\none last thing to give to you two.
#org @redwood5
#raw 0x11
#raw 0x11
#raw 0x22
#raw 0xFE
#org @redwood6
#raw 0x13
#raw 0x22
#raw 0xFE
#org @redwood7
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE
Check to make sure no other sprites on you map have an event # of 10 - if so, change them to a different #. Try troubleshooting by changing the person event # to a lower #, or swapping event #'s with a less significant sprite. Try deleting and reinserting the sprite. Try a different person ID, like 1004 and see if that works.

Zeffy

g'day

Male
Seen December 1st, 2022
Posted January 30th, 2021
6,395 posts
14.1 Years
[b]Game: sapphire
[b]Type:
[b]Editor:
[b]Script: xse

when i press yes it goes to no. ive been looking for an up-to-date xse tutorial but i cant find any that explain boxset 0x5 well
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @question 0x5
compare LASTRESULT 0x0
if b_true goto @yes
msgbox @no 0x6
release
end

#org @question
= yes or no?

#org @yes
msgbox @ya 0x6
goto @done
release
end

#org @no
msgbox @na 0x6
goto @done
release
end

#org @ya
= you said ya!

#org @na
= you said na!

#org @done
msgbox @end 0x6
release
end

#org @end
= i love waffles

Screenshots and/or Videos:
Dude, the guide that comes with XSE explains that so well. >.<
Anyways, then:

Turn this line:

compare LASTRESULT 0x0

to:

compare LASTRESULT 0x1.

trae329

Saving the world by scripting~

Seen May 31st, 2010
Posted May 31st, 2010
4 posts
14.7 Years
Game: FireRed US
Editor: XSE
Version: 1.1.1

I'm trying to make the player say something after moving to a certain spot, but nothing happens and the game freezes.
Script:
Spoiler:

#dynamic 0x800000

#org @start
msgbox @talk 0x2
end

#org @talk
= That was a weird dream...


Please help, I have been full of frustration because of this script.

trae329

Saving the world by scripting~

Seen May 31st, 2010
Posted May 31st, 2010
4 posts
14.7 Years
@trae329:
Are you using a script tile or an OW for the script?
Sorry, I went to sleep at that time.

I am using a script tile, this is exactly what I want it to do:

The player walks out of his bed and looks up down left and right.
Then he says, "That was a weird dream..."

Do I have to edit something on the tile?
Male
Seen August 17th, 2016
Posted May 9th, 2015
673 posts
14.2 Years
Sorry, I went to sleep at that time.

I am using a script tile, this is exactly what I want it to do:

The player walks out of his bed and looks up down left and right.
Then he says, "That was a weird dream..."

Do I have to edit something on the tile?
You need to set a variable to the script tile, like 5000, where it says "var number" and put setvar 0x5000 0x1 at the end of your script so it will only happen once.