View Single Post
  #7315    
Old September 15th, 2012 (12:12 PM).
Alignment's Avatar
Alignment Alignment is offline
Revered with the stars
 
Join Date: Mar 2010
Gender: Male
Nature: Lonely
Posts: 308
Quote originally posted by Charmiebee:
how do i get this script to stop looping


#org 0x8EB0BA0
'-----------------------------------
lock
faceplayer
special FR_NATIONAL_DEX
setflag FR_POKEDEX
fanfare 0x13E
msgbox 0x8EB0B53 ' Hey I just updated y...
callstd MSG_LOCK ' Built-in lock command
waitfanfare
applymovement 0xA 0x8EB0B86 ' walk_left walk_left ...
pauseevent 0x0
setflag 0x900
release
end


#org 0x8EB0B53
= Hey I just updated your \nPOK\eDEX for free.

#org 0x8EB0B86
M walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left end
I encourage you check out a tutorial. The section you need is flags, if you still can't figure it out I'll tell you that you're missing the "checkflag" portion of the script.

Check the spoilers if you're really stuck, but please try to do what I suggested above or it's no fun D:
Spoiler:


'-----------------------------------
lock
faceplayer
checkflag FR_NATIONAL_DEX
if true jump @completed_event
special FR_NATIONAL_DEX
setflag FR_POKEDEX
fanfare 0x13E
msgbox 0x8EB0B53 ' Hey I just updated y...
callstd MSG_LOCK ' Built-in lock command
waitfanfare
applymovement 0xA 0x8EB0B86 ' walk_left walk_left ...
pauseevent 0x0
setflag 0x900
release
end

#org @completed_event
msgbox @text
callstd MSG_NORMAL
release
end

#org @text
= Whatever you want to say once the event is done. You can also change what happens when the event is done if you edit the portion I wrote under complete_event.


Quote originally posted by Rogue42:
Hey I'm working on a Ruby hack for me and my friends and I need to know how to change the rivals name so when you type [rival] it will say a name of your choosing.
You can't change it once it's selected in the intro screen. Actually, you can change that with ASM. I believe HackMew accomplished this in his hack. That's really an advanced strategy though. Try to work around it, sorry for being unable to give direct help.