Add more event flags.

This commit is contained in:
IIMarckus
2015-07-10 06:08:03 -06:00
parent 86c13acf84
commit 07a12b37b6
68 changed files with 304 additions and 281 deletions

View File

@@ -157,7 +157,7 @@ UnknownScript_0x1980e5:
closetext
verbosegiveitem GS_BALL, 1
spriteface $d, LEFT
setflag $0064
setflag ENGINE_HAVE_EXAMINED_GS_BALL
clearevent $06ed
setevent $06eb
dotrigger $0

View File

@@ -16,7 +16,7 @@ DaisyScript_0x19b0d0:
end
UnknownScript_0x19b0de:
checkflag $005c
checkflag ENGINE_TEA_IN_BLUES_HOUSE
iftrue UnknownScript_0x19b11e
writetext UnknownText_0x19b1b6
yesorno
@@ -24,9 +24,9 @@ UnknownScript_0x19b0de:
writetext UnknownText_0x19b244
closetext
special Function741d
if_equal $0, UnknownScript_0x19b124
if_equal $1, UnknownScript_0x19b12a
setflag $005c
if_equal 0, UnknownScript_0x19b124
if_equal 1, UnknownScript_0x19b12a
setflag ENGINE_TEA_IN_BLUES_HOUSE
writetext UnknownText_0x19b266
closetext
loadmovesprites

View File

@@ -25,14 +25,14 @@ UnknownScript_0x185bf7:
end
UnknownScript_0x185bf8:
checkevent $0332
iftrue UnknownScript_0x185c02
changeblock $a, $8, $32
UnknownScript_0x185c02:
checkevent EVENT_HOLE_IN_BURNED_TOWER
iftrue .Next
changeblock $a, $8, $32 ; hole
.Next
checkevent EVENT_RELEASED_THE_BEASTS
iftrue UnknownScript_0x185c0c
changeblock $6, $e, $9
UnknownScript_0x185c0c:
iftrue .Done
changeblock $6, $e, $9 ; ladder
.Done
return
UnknownScript_0x185c0d:
@@ -114,7 +114,7 @@ UnknownScript_0x185c80:
writetext UnknownText_0x185e75
closetext
loadmovesprites
setevent $0332
setevent EVENT_HOLE_IN_BURNED_TOWER
pause 15
warpcheck
end

View File

@@ -259,4 +259,4 @@ BurnedTowerB1F_MapEventHeader:
person_event SPRITE_ENTEI, 7, 16, $6, $0, 255, 255, $d0, 0, ObjectEvent, $074b
person_event SPRITE_SUICUNE, 8, 14, $6, $0, 255, 255, $d0, 0, ObjectEvent, $074b
person_event SPRITE_POKE_BALL, 8, 20, $1, $0, 255, 255, $1, 0, ItemFragment_0x186231, $0657
person_event SPRITE_SUPER_NERD, 16, 14, $7, $0, 255, 255, $90, 0, SuperNerdScript_0x186212, $07aa
person_event SPRITE_SUPER_NERD, 16, 14, $7, $0, 255, 255, $90, 0, SuperNerdScript_0x186212, EVENT_EUSINE_IN_BURNED_TOWER

View File

@@ -86,7 +86,7 @@ YoungsterScript_0x184064:
writetext UnknownText_0x1842a9
closetext
loadmovesprites
checkevent $00fa
checkevent EVENT_FOUND_BERSERK_GENE_IN_CERULEAN_CITY
iffalse UnknownScript_0x184072
end
@@ -141,7 +141,7 @@ CeruleanCityMartSign:
jumpstd martsign
MapCeruleanCitySignpostItem8:
dw $00fa
dw EVENT_FOUND_BERSERK_GENE_IN_CERULEAN_CITY
db BERSERK_GENE
UnknownText_0x1840bc:

View File

@@ -68,7 +68,7 @@ CherrygroveCityGuideGent:
keeptextopen
stringtotext .mapcardname, $1
scall .UnknownScript_0x19c097
setflag $0001
setflag ENGINE_MAP_CARD
writetext GotMapCardText
keeptextopen
writetext GuideGentPokegearText
@@ -177,7 +177,7 @@ UnknownScript_0x19c12f:
TeacherScript_0x19c146:
faceplayer
loadfont
checkflag $0001
checkflag ENGINE_MAP_CARD
iftrue UnknownScript_0x19c154
writetext UnknownText_0x19c650
closetext
@@ -193,7 +193,7 @@ UnknownScript_0x19c154:
YoungsterScript_0x19c15a:
faceplayer
loadfont
checkflag $000b
checkflag ENGINE_POKEDEX
iftrue UnknownScript_0x19c168
writetext UnknownText_0x19c6d6
closetext

View File

@@ -20,8 +20,8 @@ CianwoodCity_MapScriptHeader:
.FlyPointAndSuicune
setflag ENGINE_FLYPOINT_CIANWOOD
setevent $07aa
checkevent $0333
setevent EVENT_EUSINE_IN_BURNED_TOWER
checkevent EVENT_FOUGHT_EUSINE
iffalse UnknownScript_0x1a001d
disappear $c
UnknownScript_0x1a001d:
@@ -42,9 +42,9 @@ UnknownScript_0x1a001e:
dotrigger $0
clearevent EVENT_SAW_SUICUNE_ON_ROUTE_42
domaptrigger GROUP_ROUTE_42, MAP_ROUTE_42, $1
checkevent $0333
iftrue UnknownScript_0x1a0083
setevent $0333
checkevent EVENT_FOUGHT_EUSINE
iftrue .Done
setevent EVENT_FOUGHT_EUSINE
playmusic MUSIC_MYSTICALMAN_ENCOUNTER
appear $c
applymovement $c, MovementData_0x1a00e7
@@ -69,7 +69,7 @@ UnknownScript_0x1a001e:
special Functionc48f
playmapmusic
pause 10
UnknownScript_0x1a0083:
.Done
end
PokefanFScript_0x1a0084:

View File

@@ -16,11 +16,11 @@ CianwoodPharmacist:
loadfont
checkevent EVENT_GOT_SECRETPOTION_FROM_PHARMACY
iftrue .Mart
checkevent $0037
checkevent EVENT_JASMINE_EXPLAINED_AMPHYS_SICKNESS
iffalse .Mart
writetext PharmacistGiveSecretpotionText
keeptextopen
giveitem SECRETPOTION, $1
giveitem SECRETPOTION, 1
writetext ReceivedSecretpotionText
playsound SFX_KEY_ITEM
waitbutton

View File

@@ -10,7 +10,7 @@ CopycatsHouse2F_MapScriptHeader:
dbw 2, CopycatsHouse2FCallback
CopycatsHouse2FCallback:
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Part1
disappear $7
appear $2
@@ -29,7 +29,7 @@ Copycat:
iftrue .Part13
checkitem LOST_ITEM
iftrue .Part12
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Part1
applymovement $2, MovementData_0x18afd0
faceplayer
@@ -45,7 +45,7 @@ Copycat:
checkevent EVENT_RETURNED_MACHINE_PART
iftrue .Part7
loadfont
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Part3
writetext UnknownText_0x18afda
jump .Part4
@@ -55,7 +55,7 @@ Copycat:
.Part4
closetext
loadmovesprites
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Part5
applymovement $2, MovementData_0x18afd0
jump .Part6
@@ -74,7 +74,7 @@ Copycat:
.Part7
loadfont
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Part8
writetext UnknownText_0x18b064
jump .Part9
@@ -84,7 +84,7 @@ Copycat:
.Part9
closetext
loadmovesprites
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Part10
applymovement $2, MovementData_0x18afd0
jump .Part11
@@ -125,7 +125,7 @@ Copycat:
end
.Part15
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Part16
applymovement $2, MovementData_0x18afd0
faceplayer
@@ -139,7 +139,7 @@ Copycat:
.Part17
special Function14209
loadfont
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Part18
writetext UnknownText_0x18b298
jump .Part19
@@ -149,7 +149,7 @@ Copycat:
.Part19
closetext
loadmovesprites
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Part20
applymovement $2, MovementData_0x18afd0
jump .Part21

View File

@@ -160,7 +160,7 @@ GentlemanScript_0x994c6:
jump UnknownScript_0x99505
UnknownScript_0x994f3:
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue UnknownScript_0x994ff
writetext UnknownText_0x99891
closetext

View File

@@ -10,7 +10,7 @@ DayCare_MapScriptHeader:
dbw 2, UnknownScript_0x62f7b
UnknownScript_0x62f7b:
checkflag $0005
checkflag ENGINE_DAYCARE_MONS_ARE_COMPATIBLE
iftrue UnknownScript_0x62f88
clearevent $06e5
setevent $06e6
@@ -58,7 +58,7 @@ UnknownScript_0x62fbd:
GrannyScript_0x62fc3:
faceplayer
loadfont
checkflag $0005
checkflag ENGINE_DAYCARE_MONS_ARE_COMPATIBLE
iftrue UnknownScript_0x62fd1
special Function1672a
closetext

View File

@@ -99,7 +99,7 @@ UnknownScript_0x18d0cb:
writetext UnknownText_0x18d816
closetext
loadmovesprites
setevent $00c1
setevent EVENT_ANSWERED_DRAGON_MASTER_QUIZ_WRONG
loadfont
checkevent $0005
iftrue UnknownScript_0x18d091
@@ -156,7 +156,7 @@ UnknownScript_0x18d100:
loadfont
writetext UnknownText_0x18d9bf
closetext
setflag $0022
setflag ENGINE_RISINGBADGE
playsound SFX_GET_BADGE
waitbutton
special RestartMapMusic
@@ -194,7 +194,7 @@ ElderScript_0x18d1a5:
iftrue UnknownScript_0x18d1f9
checkevent $0006
iftrue UnknownScript_0x18d1ff
checkevent $00bd
checkevent EVENT_GOT_DRATINI
iffalse UnknownScript_0x18d1c5
checkevent EVENT_BEAT_RIVAL_IN_MT_MOON
iftrue UnknownScript_0x18d1f3
@@ -212,9 +212,9 @@ UnknownScript_0x18d1c5:
playsound SFX_CAUGHT_MON
waitbutton
givepoke DRATINI, 15, 0, 0
checkevent $00c1
checkevent EVENT_ANSWERED_DRAGON_MASTER_QUIZ_WRONG
special SpecialDratini
setevent $00bd
setevent EVENT_GOT_DRATINI
setevent $0006
writetext UnknownText_0x18d6ca
closetext

View File

@@ -30,7 +30,7 @@ UnknownScript_0x9800f:
UnknownScript_0x98022:
clearevent $0766
setevent $0767
setevent EVENT_RANG_CLEAR_BELL
setevent $07b1
checkitem CLEAR_BELL
iftrue UnknownScript_0x98032
@@ -43,7 +43,7 @@ UnknownScript_0x98033:
return
UnknownScript_0x98037:
checkevent $0767
checkevent EVENT_RANG_CLEAR_BELL
iftrue UnknownScript_0x98061
applymovement $3, MovementData_0x980c7
moveperson $2, $4, $6
@@ -70,7 +70,7 @@ SageScript_0x98062:
loadfont
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue UnknownScript_0x9807c
checkflag $001e
checkflag ENGINE_FOGBADGE
iftrue UnknownScript_0x98076
writetext UnknownText_0x980d1
closetext
@@ -100,7 +100,7 @@ UnknownScript_0x98093:
closetext
loadmovesprites
dotrigger $1
setevent $0767
setevent EVENT_RANG_CLEAR_BELL
clearevent $0766
setevent $0000
end
@@ -299,6 +299,6 @@ EcruteakHouse_MapEventHeader:
; people-events
db 4
person_event SPRITE_SAGE, 10, 8, $6, $0, 255, 255, $0, 0, SageScript_0x98062, $0766
person_event SPRITE_SAGE, 10, 9, $6, $0, 255, 255, $0, 0, SageScript_0x98062, $0767
person_event SPRITE_SAGE, 10, 9, $6, $0, 255, 255, $0, 0, SageScript_0x98062, EVENT_RANG_CLEAR_BELL
person_event SPRITE_SAGE, 13, 10, $2, $11, 255, 255, $0, 0, SageScript_0x980b0, $07b1
person_event SPRITE_GRAMPS, 15, 7, $2, $11, 255, 255, $0, 0, GrampsScript_0x980c4, $07b1

View File

@@ -46,8 +46,8 @@ UnknownScript_0x98e95:
applymovement $6, MovementData_0x98ece
playsound SFX_EXIT_BUILDING
disappear $6
clearevent $0712
setflag $0053
clearevent EVENT_MET_BILL
setflag ENGINE_TIME_CAPSULE
dotrigger $1
waitbutton
end

View File

@@ -95,7 +95,7 @@ ProfElmScript:
UnknownScript_0x78bee:
checkevent EVENT_GOT_MASTER_BALL_FROM_ELM
iftrue UnknownScript_0x78bfa
checkflag $0022
checkflag ENGINE_RISINGBADGE
iftrue ElmGiveMasterBallScript
UnknownScript_0x78bfa:
checkevent EVENT_GOT_EVERSTONE_FROM_ELM
@@ -132,7 +132,7 @@ UnknownScript_0x78c35:
UnknownScript_0x78c41:
checkevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE ; why are we checking it again?
iftrue ElmWaitingEggHatchScript
checkflag $001b
checkflag ENGINE_ZEPHYRBADGE
iftrue ElmAideHasEggScript
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
iftrue ElmStudyingEggScript
@@ -337,7 +337,7 @@ ElmAfterTheftScript:
writetext ElmAfterTheftText5
keeptextopen
setevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
setflag $0010
setflag ENGINE_BUG_CONTEST_ON
domaptrigger GROUP_ROUTE_29, MAP_ROUTE_29, $1
clearevent $0715
setevent $0714
@@ -564,7 +564,7 @@ CopScript:
ElmsLabWindow:
loadfont
checkflag $0043
checkflag ENGINE_FLYPOINT_VIOLET
iftrue .Normal
checkevent EVENT_ELM_CALLED_ABOUT_STOLEN_POKEMON
iftrue .BreakIn

View File

@@ -43,22 +43,22 @@ SailorScript_0x75160:
loadfont
checkevent $0031
iftrue UnknownScript_0x7517a
checkevent $002f
iftrue UnknownScript_0x75174
checkevent EVENT_FAST_SHIP_DESTINATION_OLIVINE
iftrue .Olivine
writetext UnknownText_0x7523b
closetext
loadmovesprites
end
UnknownScript_0x75174:
.Olivine
writetext UnknownText_0x7529b
closetext
loadmovesprites
end
UnknownScript_0x7517a:
checkevent $002f
iftrue UnknownScript_0x7519c
checkevent EVENT_FAST_SHIP_DESTINATION_OLIVINE
iftrue .Olivine
writetext UnknownText_0x754be
closetext
loadmovesprites
@@ -71,7 +71,7 @@ UnknownScript_0x7517a:
warp GROUP_VERMILION_PORT, MAP_VERMILION_PORT, $7, $11
end
UnknownScript_0x7519c:
.Olivine
writetext UnknownText_0x7548d
closetext
loadmovesprites

View File

@@ -48,7 +48,7 @@ TwinScript_0x75ebb:
showemote $0, $3, 15
applymovement $4, MovementData_0x7600c
spriteface $3, RIGHT
checkflag $0063
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue UnknownScript_0x75f03
loadfont
writetext UnknownText_0x76284

View File

@@ -19,12 +19,12 @@ ClerkScript_0x54750:
writetext UnknownText_0x547f8
keeptextopen
waitbutton
giveitem BICYCLE, $1
giveitem BICYCLE, 1
writetext UnknownText_0x54848
playsound SFX_KEY_ITEM
waitbutton
itemnotify
setflag $0014
setflag ENGINE_14
setevent EVENT_GOT_BICYCLE
UnknownScript_0x54775:
writetext UnknownText_0x5485f

View File

@@ -49,7 +49,7 @@ UnknownScript_0x54c1f:
BillsMom:
faceplayer
loadfont
checkevent $0712
checkevent EVENT_MET_BILL
iffalse UnknownScript_0x54c33
writetext UnknownText_0x54ea8
closetext
@@ -257,6 +257,6 @@ GoldenrodBillsHouse_MapEventHeader:
; people-events
db 3
person_event SPRITE_BILL, 7, 6, $9, $0, 255, 255, $0, 0, BillsHouseBill, $0712
person_event SPRITE_BILL, 7, 6, $9, $0, 255, 255, $0, 0, BillsHouseBill, EVENT_MET_BILL
person_event SPRITE_POKEFAN_F, 7, 9, $6, $0, 255, 255, $0, 0, BillsMom, $ffff
person_event SPRITE_TWIN, 8, 9, $2, $11, 255, 255, $a0, 0, BillsSister, $ffff

View File

@@ -170,7 +170,7 @@ UnknownScript_0x1989f7:
CooltrainerFScript_0x1989fd:
faceplayer
loadfont
checkflag $0000
checkflag ENGINE_RADIO_CARD
iftrue UnknownScript_0x198a0b
writetext UnknownText_0x198b73
closetext

Some files were not shown because too many files have changed in this diff Show More