Browse Source

Neue Scripts

dragonflysots 6 years ago
parent
commit
17f68c66cc

+ 1
- 1
sots-private

1
-Subproject commit 0eb1bd3c286b789bb9c238fefe458ed0b38dc979
1
+Subproject commit 3b9168a248b28cf6f4bcc867ad61ebe282358fc7

+ 1
- 0
src/include/constants/items.h View File

716
 #define ITEM_AP_BON 0x2C8
716
 #define ITEM_AP_BON 0x2C8
717
 #define ITEM_STATUSWERTEBON 0x2C9
717
 #define ITEM_STATUSWERTEBON 0x2C9
718
 #define ITEM_FANGBON 0x2CA
718
 #define ITEM_FANGBON 0x2CA
719
+#define ITEM_ENZYKLOPAEDIE 0x0
719
 
720
 
720
 #endif /* ITEM_IDS */
721
 #endif /* ITEM_IDS */

+ 10
- 0
src/include/constants/pymap/story_flags.h View File

21
 #define FLAG_FARBRAETSEL_GELBTAFEL 0x514
21
 #define FLAG_FARBRAETSEL_GELBTAFEL 0x514
22
 #define FLAG_FARBRAETSEL_PINKTAFEL 0x515
22
 #define FLAG_FARBRAETSEL_PINKTAFEL 0x515
23
 #define FLAG_FARBRAETSEL_BLAUTAFEL 0x516
23
 #define FLAG_FARBRAETSEL_BLAUTAFEL 0x516
24
+#define FLAG_REBOST_LATIOS_RAETSEL_AKTIV 0x517
25
+#define FLAG_REBOST_LATIOS_RAETSEL_KERZE1 0x518
26
+#define FLAG_REBOST_LATIOS_RAETSEL_KERZE2 0x519
27
+#define FLAG_REBOST_LATIOS_RAETSEL_KERZE3 0x51a
28
+#define FLAG_REBOST_LATIOS_RAETSEL_KERZE4 0x51b
29
+#define FLAG_REBOST_LATIAS_RAETSEL_AKTIV 0x51c
30
+#define FLAG_REBOST_LATIAS_RAETSEL_KERZE1 0x51d
31
+#define FLAG_REBOST_LATIAS_RAETSEL_KERZE2 0x51e
32
+#define FLAG_REBOST_LATIAS_RAETSEL_KERZE3 0x51f
33
+#define FLAG_REBOST_LATIAS_RAETSEL_KERZE4 0x520

+ 10
- 0
src/include/constants/pymap/story_flags.s View File

21
 .equ FLAG_FARBRAETSEL_GELBTAFEL, 0x514
21
 .equ FLAG_FARBRAETSEL_GELBTAFEL, 0x514
22
 .equ FLAG_FARBRAETSEL_PINKTAFEL, 0x515
22
 .equ FLAG_FARBRAETSEL_PINKTAFEL, 0x515
23
 .equ FLAG_FARBRAETSEL_BLAUTAFEL, 0x516
23
 .equ FLAG_FARBRAETSEL_BLAUTAFEL, 0x516
24
+.equ FLAG_REBOST_LATIOS_RAETSEL_AKTIV, 0x517
25
+.equ FLAG_REBOST_LATIOS_RAETSEL_KERZE1, 0x518
26
+.equ FLAG_REBOST_LATIOS_RAETSEL_KERZE2, 0x519
27
+.equ FLAG_REBOST_LATIOS_RAETSEL_KERZE3, 0x51a
28
+.equ FLAG_REBOST_LATIOS_RAETSEL_KERZE4, 0x51b
29
+.equ FLAG_REBOST_LATIAS_RAETSEL_AKTIV, 0x51c
30
+.equ FLAG_REBOST_LATIAS_RAETSEL_KERZE1, 0x51d
31
+.equ FLAG_REBOST_LATIAS_RAETSEL_KERZE2, 0x51e
32
+.equ FLAG_REBOST_LATIAS_RAETSEL_KERZE3, 0x51f
33
+.equ FLAG_REBOST_LATIAS_RAETSEL_KERZE4, 0x520

+ 17
- 5
src/include/script/language.h View File

14
 .equ PLAYER, 0xFF
14
 .equ PLAYER, 0xFF
15
 .equ CAMERA, 0x7F
15
 .equ CAMERA, 0x7F
16
 
16
 
17
+@@Yesnos
18
+.equ MSG_NO, 0x0
19
+.equ MSG_YES, 0x1
20
+
17
 @@Some Gender
21
 @@Some Gender
18
 .equ GENDER_MALE, 0x0
22
 .equ GENDER_MALE, 0x0
19
 .equ GENDER_FEMALE, 0x1
23
 .equ GENDER_FEMALE, 0x1
52
 .equ LED_URBANIA_CITY_RECHTS, 0x8
56
 .equ LED_URBANIA_CITY_RECHTS, 0x8
53
 
57
 
54
 @@ Flag operands
58
 @@ Flag operands
55
-.equ B_T, 0x0
56
-.equ B_F, 0x1
59
+.equ B_F, 0x0
60
+.equ B_T, 0x1
57
 
61
 
58
 @@ callstd alias
62
 @@ callstd alias
59
 .equ ITEM_OBTAIN, 0x0
63
 .equ ITEM_OBTAIN, 0x0
156
 writebytetooffset \seteffect_effect_id 0x02036E28
160
 writebytetooffset \seteffect_effect_id 0x02036E28
157
 .endm
161
 .endm
158
 
162
 
159
-.macro setecutscene
163
+.macro setcutscene
160
 writebytetooffset 0x80 0x4000044
164
 writebytetooffset 0x80 0x4000044
161
 writebytetooffset 0x20 0x4000045
165
 writebytetooffset 0x20 0x4000045
162
 .endm
166
 .endm
335
 .endm
339
 .endm
336
 
340
 
337
 .macro cameramove cameramove_xpos:req cameramove_ypos:req
341
 .macro cameramove cameramove_xpos:req cameramove_ypos:req
338
-setvar CAMERA_VAR_X \cameramove_xpos
339
-setvar CAMERA_VAR_Y \cameramove_ypos
342
+.if \cameramove_xpos==VAR_XPOS&&\cameramove_ypos==VAR_YPOS
343
+    copyvar CAMERA_VAR_X \cameramove_xpos
344
+    copyvar CAMERA_VAR_Y \cameramove_ypos
345
+.endif
346
+.if \cameramove_xpos!=VAR_XPOS&&\cameramove_ypos!=VAR_YPOS
347
+    setvar CAMERA_VAR_X \cameramove_xpos
348
+    setvar CAMERA_VAR_Y \cameramove_ypos
349
+.endif
340
 setvar CALLASM_VAR 0x1
350
 setvar CALLASM_VAR 0x1
341
 special 0x68
351
 special 0x68
352
+waitstate
353
+pause 0x20
342
 .endm
354
 .endm
343
 
355
 
344
 .macro walkingscript walkingscript_value:req
356
 .macro walkingscript walkingscript_value:req