Renegade
Time for real life...
- 995
- Posts
- 13
- Years
- United States
- Seen Jan 8, 2015
Did you want the 2nd script to happen right after the 1st script? Or later in the game?
Fire Red
I want it so after you walk on script one script 2 will be there, but only until script 1 was finished what did I do? :pirate:
Script 1
Spoiler:
#dynamic 0x8032E8
#org @start
lockall
checkflag 0x120
if 0x1 goto @done
special 0x113
applymovement 0x7F @move1
waitmovement 0x0
msgbox @kid 0x6
applymovement 0x1 @move2
waitmovement 0x0
msgbox @kaga 0x6
applymovement 0x1 @move4
waitmovement 0x0
applymovement 0x5 @move5
waitmovement 0x0
applymovement 0x2 @move6
waitmovement 0x0
msgbox @star 0x6
applymovement 0x4 @move7
waitmovement 0x0
msgbox @weirdo 0x6
applymovement 0x2 @move8
waitmovement 0x0
msgbox @screw 0x6
applymovement 0x2 @move9
waitmovement 0x0
msgbox @well 0x6
applymovement 0x4 @move10
waitmovement 0x0
applymovement 0x3 @move11
waitmovement 0x0
msgbox @grunt 0x6
msgbox @out 0x6
applymovement 0x3 @move12
applymovement 0x4 @move12
waitmovement 0x0
applymovement 0x7F @move14
waitmovement 0x0
special 0x114
msgbox @hide 0x6
applymovement 0xFF @move15
waitmovement 0x0
releaseall
end
#org @done
releaseall
end
#org @move1
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xB
#raw 0xFE
#org @kid
= Kid: You'll pay for what you've\ndone to Nidorina! Go Kangaskhan\luse Tackle Attack!\l???: Slowbro, Seismic Toss!
#org @move2
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE
#org @kaga
= Now Slowbro finish him.
#org @move4
#raw 0x60
#raw 0xFE
#org @move5
#raw 0x54
#raw 0xFE
#org @move6
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x65
#raw 0x13
#raw 0xFE
#org @star
= Kid: What the hell dude..Why did\nyou have to go ahead and throw my\lpokemon? Who the hell throws a\lpokemon? Are you even sane?
#org @move7
#raw 0x12
#raw 0x0
#raw 0xFE
#org @weirdo
= ???: I didn't mean it like that I\njust meant to..
#org @move8
#raw 0x1
#raw 0xFE
#org @screw
= Kid: Screw you prick...I'm\nleaving.
#org @move9
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x60
#raw 0xFE
#org @move10
#raw 0x1
#raw 0xFE
#org @move11
#raw 0x12
#raw 0x0
#raw 0xFE
#org @well
= ???: Well then..He didn't have to\ngo and hurt my feelings. Anyway\llets finish what we came here for,\llets pay a visit to our old friend\l\v\h01. You got the duct tape?
#org @grunt
= Grunt: Yeah boss.
#org @out
= ???: Lets go.
#org @move12
#raw 0x2
#raw 0xFE
#org @move14
#raw 0x9
#raw 0x9
#raw 0x9
#raw 0x9
#raw 0xA
#raw 0xFE
#org @hide
= \v\h01: Better hide somewhere quick.
#org @move15
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
Script 2
Spoiler:#dynamic 0x800DE5
#org @start
lockall
checkflag 0x120
if 0x1 goto @done
applymovement 0xFF @move1
waitmovement 0x0
applymovement 0x1 @move2
applymovement 0x2 @move3
waitmovement 0x0
special 0x113
applymovement 0x7F @move4
waitmovement 0x0
msgbox @talk1 0x6
msgbox @talk2 0x6
applymovement 0x7F @move5
waitmovement 0x0
msgbox @talk3 0x6
special 0x114
setflag 0x120
releaseall
end
#org @done
clearflag 0x120
releaseall
end
#org @move1
#raw 0x3
#raw 0x62
#raw 0xFE
#org @move2
#raw 0x13
#raw 0x5
#raw 0x61
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
#org @move3
#raw 0x13
#raw 0x13
#raw 0x5
#raw 0x61
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x18
#raw 0x12
#raw 0x11
#raw 0xFE
#org @move4
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE
#org @talk1
= Mom: Who the hell are you? Get\nout of my house this instant!
#org @talk2
= ???: Tie that ***** up and\nlook\lfor \v\h01.
#org @move5
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
#org @talk3
= **** that old ***** better get out\nof here.
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @done
message @1 0x6
setflag 0x200 [COLOR="Red"]<---this will tell the ROM that your first script has been set/executed, so your second script will know.[/COLOR]
release
end
#org @done
message @2 0x6
release
end
#org @1
= Hello.
#org @2
= Um...\nI said hello already...
#dynamic 0x801000
#org @start
lock
faceplayer
checkflag 0x201 [COLOR="red"]<---this is the second script's flag.[/COLOR]
if 0x1 goto @done
checkflag 0x200 [COLOR="Red"]<---this is the flag of the first script.[/COLOR]
if 0x1 goto @talked [COLOR="Red"]<---if the first script's flag has been set/executed, then the second script will go to the [COLOR="Blue"]@talked[/COLOR] address[/COLOR]
message @1 0x6 [COLOR="Red"]<---if the first script's flag was not yet set, the second script will proceed here.[/COLOR]
release
end
#org @talked
message @2 0x6
setflag 0x201
release
end
#org @done
message @3 0x6
release
end
#org @1
= Go talk to that guy over there.
#org @2
= Wow...\nYou actually talked to him?\lThat takes some guts.
#org @3
= Really...\nThat takes some guts, kid.
#dynamic 0x800DE5
#org @start
lockall
[COLOR="blue"]checkflag 0x121
if 0x1 goto @done[/COLOR]
checkflag 0x120
if 0x0 goto @done [COLOR="Red"]<---this will tell the ROM that if the first script was not yet done/triggered/executed/set, then the script will go to the [COLOR="Blue"]@done[/COLOR] address.[/COLOR]
applymovement 0xFF @move1
waitmovement 0x0
...
...
applymovement 0x7F @move5
waitmovement 0x0
msgbox @talk3 0x6
special 0x114
[COLOR="blue"]setflag 0x121[/COLOR]
releaseall
end
'-----------------------
#org 0x800000
checkflag 0x228
if 0x0 goto 0x8800061
msgbox 0x880006A '"It's an injured Pokemon.\n Should I..."
checkflag 0x228
if 0x0 goto 0x8800023
msgbox 0x88000A0 '"That's okay.\pI'm sure someone else..."
release
end
'-----------------------
#org 0x800061
msgbox 0x88000D4 '"blackkfrrYou received a Charmander!"
release
end
'-----------------------
#org 0x800023
givepokemon 0xC5 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88000D4 '"blackkfrrYou received a Charmander!"
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x88000FA '"blackkfrrWould you like to give a\n..."
checkflag 0x228
if 0x0 call 0x880005A
msgbox 0x8800137 '"I should take it to a/n Pokemon Cen..."
setflag 0x228
release
end
'-----------------------
#org 0x80005A
call 0x81A74EB
return
'-----------------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return
'---------
#org 0x80006A
= It's an injured Pokemon.\n Should I take It with me?
#org 0x8000A0
= That's okay.\pI'm sure someone else will\ntake it.
#org 0x8000D4
= blackkfrrYou received a Charmander!
#org 0x8000FA
= blackkfrrWould you like to give a\nnickname to Charmander?
#org 0x800137
= I should take it to a/n Pokemon Center.
#dynamic 0x800000
#org @start
lock
msgbox 0x880006A 0x5 '"It's an injured Pokemon.\n Should I..."
compare 0x800D 0x1
if 0x1 goto 0x800023
compare 0x800D 0x0
if 0x1 goto 0x800061
end
#org 0x800061
msgbox 0x88000A0 0x6 '"That's okay.\pI'm sure someone else..."
release
end
#org 0x800023
givepokemon 0xC5 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88000D4 0x6
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x88000FA 0x5
compare 0x800D 0x1
if 0x1 goto 0x80005A
compare 0x800D 0x0
if 0x1 goto @continue
release
end
#org @continue
msgbox 0x8800137 0x6 '"I should take it to a/n Pokemon Cen..."
hidesprite 0x(Person Event no.)
setflag 0x228
release
end
#org 0x80005A
call 0x81A74EB
return
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
goto @continue
#org 0x80006A
= It's an injured Pokemon.\n Should I take It with me?
#org 0x8000A0
= That's okay.\pI'm sure someone else will\ntake it.
#org 0x8000D4
= [black_fr]You received a Charmander!
#org 0x8000FA
= [black_fr]Would you like to give a\nnickname to Charmander?
#org 0x800137
= I should take it to a/n Pokemon Center.
#dynamic 0x800120
#org @start
lock
textcolor 0x0
message @t1 4
closeonkeypress
applymovement 0xFF @m2
waitmovement 0x0
applymovement 4 @m1
waitmovement 0x0
applymovement 0xFF @m3
waitmovement 0x0
message @t2 6
applymovement 4 @m4
applymovement 0xFF @m5
waitmovement 0x0
message @t3 6
applymovement 5 @m6
applymovement 6 @m6
waitmovement 0x0
playsong 0x112 0x0
setweather 0x3
doweather
applymovement 5 @m7
applymovement 6 @m7
message @t4 6
message @t5 6
applymovement 5 @m8
applymovement 6 @m8
waitmovement 0x0
message @t6 6
applymovement 5 @m9
applymovement 6 @m9
message @t7 4
waitmovement 0x0
fadescreen 0x1
hidesprite 0x04
setflag 0x1203
hidesprite 0x05
setflag 0x1204
hidesprite 0x06
setflag 0x1205
fadescreen 0x0
warp 0x3 0x46 0xFF 0x0C 0x0C
setvar 0x6004 0x0001
release
end
#org @t1
= ???: Hey! \v\h01!
#org @m1
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1E
#raw 0xFE
#org @m2
#raw 0x3
#raw 0xFE
#org @m3
#raw 0x0
#raw 0xFE
#org @t2
= \v\h06: I was wondering when\nyou would wake up.\pI want to head over to Professor\nOak's place and ask if I can have my\lPokèmon yet. We can go together!\pCome on!
#org @m4
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x62
#raw 0xFE
#org @m5
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x62
#raw 0x11
#raw 0x13
#raw 0xFE
#org @t3
= \v\h06: Who are those people...?
#org @m6
#raw 0x62
#raw 0x2
#raw 0xFE
#org @m7
#raw 0x12
#raw 0x12
#raw 0xFE
#org @t4
= Man: Hm? What do you kids want?\pAre you eavesdropping on us?
#org @t5
= \v\h06: No. I mean, uhh...
#org @m8
#raw 0x23
#raw 0xFE
#org @t6
= Man: Enough! Take them away,\nGrunt!
#org @m9
#raw 0x1F
#raw 0x1F
#raw 0xFE
#org @t7
= \v\h06: Wait!
I'm having a strange problem with this script. Everything works, except for the "warp" command at the end. When it "warps" me, the screen fades to black and then nothing happens. (Like the game freezes on a black screen and doesn't go to map 3.46) Help please?
Code:#dynamic 0x800120 #org @start lock textcolor 0x0 message @t1 4 closeonkeypress applymovement 0xFF @m2 waitmovement 0x0 applymovement 4 @m1 waitmovement 0x0 applymovement 0xFF @m3 waitmovement 0x0 message @t2 6 applymovement 4 @m4 applymovement 0xFF @m5 waitmovement 0x0 message @t3 6 applymovement 5 @m6 applymovement 6 @m6 waitmovement 0x0 playsong 0x112 0x0 setweather 0x3 doweather applymovement 5 @m7 applymovement 6 @m7 message @t4 6 message @t5 6 applymovement 5 @m8 applymovement 6 @m8 waitmovement 0x0 message @t6 6 applymovement 5 @m9 applymovement 6 @m9 message @t7 4 waitmovement 0x0 fadescreen 0x1 hidesprite 0x04 setflag 0x1203 hidesprite 0x05 setflag 0x1204 hidesprite 0x06 setflag 0x1205 fadescreen 0x0 warp 0x3 0x46 0xFF 0x0C 0x0C setvar 0x6004 0x0001 release end #org @t1 = ???: Hey! \v\h01! #org @m1 #raw 0x1F #raw 0x1F #raw 0x1F #raw 0x1F #raw 0x1F #raw 0x1F #raw 0x1F #raw 0x1F #raw 0x1E #raw 0xFE #org @m2 #raw 0x3 #raw 0xFE #org @m3 #raw 0x0 #raw 0xFE #org @t2 = \v\h06: I was wondering when\nyou would wake up.\pI want to head over to Professor\nOak's place and ask if I can have my\lPokèmon yet. We can go together!\pCome on! #org @m4 #raw 0x10 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x62 #raw 0xFE #org @m5 #raw 0x10 #raw 0x10 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x62 #raw 0x11 #raw 0x13 #raw 0xFE #org @t3 = \v\h06: Who are those people...? #org @m6 #raw 0x62 #raw 0x2 #raw 0xFE #org @m7 #raw 0x12 #raw 0x12 #raw 0xFE #org @t4 = Man: Hm? What do you kids want?\pAre you eavesdropping on us? #org @t5 = \v\h06: No. I mean, uhh... #org @m8 #raw 0x23 #raw 0xFE #org @t6 = Man: Enough! Take them away,\nGrunt! #org @m9 #raw 0x1F #raw 0x1F #raw 0xFE #org @t7 = \v\h06: Wait!
Like i told you in thethethe;s tut just they're on HEX!
That means it should be 0x2E!
So your warp code will be warp 0x3 0x2E 0xFF 0x0C 0x0C!
Hex is like this
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
10
11
12
13
14
15
16
17
18
19
1A
1B
.........And so on.... you use XSE so just use the converter there... :)
'-----------------------
#org 0x6B1840
lockall
msgbox 0x86B1862 '"Lady: You shouldn't go in the\nfore..."
callstd 0x4
closeonkeypress
applymovement MOVE_PLAYER 0x86B189F
waitmovement 0x0
releaseall
end
'-----------
' Movements
'-----------
#org 0x6B189F
#raw 8 'Step Down (Normal)
#raw FE 'End of Movements
'---------
' Strings
'---------
#org 0x6B1862
= Lady: You shouldn't go in the\nforest yet.
Game: Pokemon Ruby
Program: XSE
Problem: I put it as atile in Advanced-Map but when I enter in game and step on it the game freezes.
Code:Code:'----------------------- #org 0x6B1840 lockall msgbox 0x86B1862 '"Lady: You shouldn't go in the\nfore..." callstd 0x4 closeonkeypress applymovement MOVE_PLAYER 0x86B189F waitmovement 0x0 releaseall end '----------- ' Movements '----------- #org 0x6B189F #raw 8 'Step Down (Normal) #raw FE 'End of Movements '--------- ' Strings '--------- #org 0x6B1862 = Lady: You shouldn't go in the\nforest yet.
Honestly, Im confused, I make a new event, now how Do i add my own script to that event? I need all steps please
Its Fire Red btw
Ive read the tutorial twice through, and Im still a little confused, how would I go abput making a new script? I know what to write, just not how to assign it to a new event
hey im new to script writing and ive been having problems, the first script i wrote was a basic one and that seemed to work fine, but then i wrote a yes/no script and problems arose.... whenever i pressed compile it said: unknown keyword 'lock' at line 4
can anyone help a noob out??
hey im new to script writing and ive been having problems, the first script i wrote was a basic one and that seemed to work fine, but then i wrote a yes/no script and problems arose.... whenever i pressed compile it said: unknown keyword 'lock' at line 4
can anyone help a noob out??
i just wanted to ask if there is a command in any script which fades screen and replace an OW Sprite with another and thnx you are always my leader in rom hacking.