-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTokyo Xtreme Racer.rascript
110 lines (79 loc) · 2.37 KB
/
Tokyo Xtreme Racer.rascript
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Tokyo Xtreme Racer
// #ID = 10836
// $0709BC: Screen ID:
// 0x01 = Main Menu
// 0x02 = Quest Menu
// 0x03 = Garage
// 0x04 = Tuning
// 0x0a = Rivals
// 0x0f = Quick Race
// 0x10 = Select Route
// 0x22 = Playing
function InGameplay() => byte(0x0709BC)
// $156B11: Game Mode:
// 0x00 = Quck Mode
// 0x01 = Vs. Mode
// 0x02 = Quest Mode
// 0x03 = Practice
// 0x04 = Options
function Mode() => byte(0x156B11)
function Active() => InGameplay() == 0x22 && Mode() == 0x02
Rivals = {"Rolling Guy":bit0(0x1528d0),
"Curving Edge":bit4(0x1528d0),
"SS Limited":bit1(0x1528d1),
"Elegant Wild":bit7(0x1528d1),
"Max Racing":bit5(0x1528d2),
"Diamond Image":bit5(0x1528d3),
"Fine Drive":bit3(0x1528d4),
"Twister":bit3(0x1528d5),
"R.Gangs":bit1(0x1528d6),
"Tokio Jungle":bit0(0x1528d7),
"Top Level":bit7(0x1528d7),
"Free Way":bit5(0x1528d8),
"Another Star":bit6(0x1528d9),
"Speed Box":bit3(0x1528da),
"TR Racing":bit1(0x1528db),
"Cupid Arrows":bit7(0x1528db),
"Wind Stars":bit5(0x1528dc),
"R.R.":bit6(0x1528dd),
"Rings":bit6(0x1528de),
"Speed Master":bit4(0x1528df),
}
Bosses = {"Grim Reaper":bit5(0x1528e0),
"Midnight Cinderella":bit6(0x1528e0),
"Nocturnal Wolf":bit7(0x1528e0),
"Banshee":bit0(0x1528e1),
"Raven Blood":bit1(0x1528e1),
"Exhaust Eve":bit2(0x1528e1),
"ZERO":bit3(0x1528e1),
"???":bit4(0x1528e1)}
function LeadersAchievements(team){
achievement(
title = team,
description = "Defeat " + team + " Leader",
points = 5,
trigger = Active() && prev(Rivals[team]) < Rivals[team]
)
}
for i in Rivals{
LeadersAchievements(i)
}
function BossesAchievements(boss){
if(boss != "???"){
achievement(
title = boss,
description = "Defeat " + boss,
points = 10,
trigger = Active() && prev(Bosses[boss]) < Bosses[boss]
)}
else{
achievement(
title = boss,
description = "Defeat " + boss,
points = 25,
trigger = Active() && prev(Bosses[boss]) < Bosses[boss]
)}
}
for i in Bosses{
BossesAchievements(i)
}