-
Notifications
You must be signed in to change notification settings - Fork 830
/
Copy pathralph.asm
59 lines (53 loc) · 1.56 KB
/
ralph.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
RalphPhoneCalleeScript:
gettrainername STRING_BUFFER_3, FISHER, RALPH1
checkflag ENGINE_RALPH_READY_FOR_REMATCH
iftrue .Rematch
farscall PhoneScript_AnswerPhone_Male
checkflag ENGINE_RALPH_WEDNESDAY_MORNING
iftrue .CheckSwarm
readvar VAR_WEEKDAY
ifnotequal WEDNESDAY, .CheckSwarm
checktime MORN
iftrue Ralph_WednesdayMorning
.CheckSwarm:
checkflag ENGINE_QWILFISH_SWARM
iftrue .ReportSwarm
farsjump RalphNoItemScript
.Rematch:
getlandmarkname STRING_BUFFER_5, LANDMARK_ROUTE_32
farsjump RalphReminderScript
.ReportSwarm:
getlandmarkname STRING_BUFFER_5, LANDMARK_ROUTE_32
farsjump RalphHurryScript
RalphPhoneCallerScript:
gettrainername STRING_BUFFER_3, FISHER, RALPH1
farscall PhoneScript_GreetPhone_Male
checkflag ENGINE_FLYPOINT_GOLDENROD
iffalse .CheckSwarm
checkflag ENGINE_RALPH_READY_FOR_REMATCH
iftrue .CheckSwarm
checkflag ENGINE_RALPH_WEDNESDAY_MORNING
iftrue .CheckSwarm
farscall PhoneScript_Random2
ifequal 0, Ralph_FightMe
.CheckSwarm:
farscall PhoneScript_Random5
ifequal 0, Ralph_SetUpSwarm
farsjump Phone_GenericCall_Male
Ralph_WednesdayMorning:
setflag ENGINE_RALPH_WEDNESDAY_MORNING
Ralph_FightMe:
getlandmarkname STRING_BUFFER_5, LANDMARK_ROUTE_32
setflag ENGINE_RALPH_READY_FOR_REMATCH
farsjump PhoneScript_WantsToBattle_Male
Ralph_SetUpSwarm:
checkflag ENGINE_QWILFISH_SWARM
iftrue .Generic
setflag ENGINE_QWILFISH_SWARM
getmonname STRING_BUFFER_4, QWILFISH
getlandmarkname STRING_BUFFER_5, LANDMARK_ROUTE_32
setval FISHSWARM_QWILFISH
special ActivateFishingSwarm
farsjump RalphItemScript
.Generic:
farsjump Phone_GenericCall_Male