- 8
- Posts
- 10
- Years
- Seen Aug 25, 2014
but it did it again after the battle....
You need to use trainerbattle 0x1 so the script continues straight after winning the battle.
Like in Diego's example script for a Gym Leader:
Code:#dynamic 0x800000 #org @start lock faceplayer checkflag 0x820 if 0x1 goto @done msgbox @2 0x6 trainerbattle 0x1 0x001 0x0 @before @after @later end #org @before = Show me what ya got! #org @after = What the-? #org @later msgbox @3 0x6 fanfare 0x13E msgbox @4 0x4 waitfanfare closeonkeypress msgbox @5 0x6 giveitem 0x147 0x1 setflag 0x820 release end #org @done msgbox @1 0x6 release end #org @1 = You should travel to Cerulean City\nto get your next badge. #org @2 = Welcome to Pewter City Gym.\nYou want to challenge me? #org @3 = Congratulations!\pFor beating me, you get\nthis badge! #org @4 = \v\h01 recieved a badge! #org @5 = Oh, and please take this.
You don't script warps tiles - that part has nothing to do with this tutorial. The warp diego used is as part of a script, whilst you're looking at warp tiles. The [W]s in A-Map simply go on a door (or by stairs, etc.) and will automatically warp you when you move in the correct manner. The warp you have a picture of takes you to Map 3,0 - Warp 0. Which should be Pallet Town. Change the numbers to change where it goes.
Okay then, how do I input that offset in then?
LASTRESULT doesn't do work. It's telling me to define something.
Probably your script was wrong. If it was correct, the error define wouldn't appear.
LASTRESULT doesn't do work. It's telling me to define something.
I need help... I'm trying to make scripts in Fire red, but every time I add one, and I walk into the script, the game just crashes. I have no idea what I'm doing wrong. (I'm a noob to scripting, however)
This is a short script I wrote just to paste here:
Spoiler:'---------------
#org 0x740000
lock
msgbox 0x874000C MSG_NORMAL '"Moo."
release
end
'---------
' Strings
'---------
#org 0x74000C
= Moo.
Put that in a person event and it should work fine green script tiles need to have variables selected - I believe there is a tutorial on them by KarateKid.
A question.
Why is it that whenever I put in a script using Advanced Map, it changes everything I put in into this format:
Spoiler:'---------------
#org 0x327B71
lock
faceplayer
msgbox 0x8327B92 MSG_KEEPOPEN '"What wonderful Pok?mon you\nhave t..."
closeonkeypress
fadescreen 0x1
fanfare 0x100
special 0x166
waitfanfare
fadescreen 0x0
msgbox 0x8327BE6 MSG_NORMAL '"Now they look better!\nDon't forge..."
release
end
'---------
' Strings
'---------
#org 0x327B92
= What wonderful Pok?mon you\nhave there!\pThey look like\nthey could use a long rest.
#org 0x327BE6
= Now they look better!\nDon't forget to visit!
I'm a Newbie, a very unexprienced pathetic newbie, So these kind of things confuse me D:
Besides that, Is there anywhere I could learn everything from the very beginning?