Browse Source

Neue Scripts

dragonflysots 5 years ago
parent
commit
17f68c66cc

+ 1
- 1
sots-private

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

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

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

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

@@ -21,3 +21,13 @@
21 21
 #define FLAG_FARBRAETSEL_GELBTAFEL 0x514
22 22
 #define FLAG_FARBRAETSEL_PINKTAFEL 0x515
23 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,3 +21,13 @@
21 21
 .equ FLAG_FARBRAETSEL_GELBTAFEL, 0x514
22 22
 .equ FLAG_FARBRAETSEL_PINKTAFEL, 0x515
23 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,6 +14,10 @@
14 14
 .equ PLAYER, 0xFF
15 15
 .equ CAMERA, 0x7F
16 16
 
17
+@@Yesnos
18
+.equ MSG_NO, 0x0
19
+.equ MSG_YES, 0x1
20
+
17 21
 @@Some Gender
18 22
 .equ GENDER_MALE, 0x0
19 23
 .equ GENDER_FEMALE, 0x1
@@ -52,8 +56,8 @@
52 56
 .equ LED_URBANIA_CITY_RECHTS, 0x8
53 57
 
54 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 62
 @@ callstd alias
59 63
 .equ ITEM_OBTAIN, 0x0
@@ -156,7 +160,7 @@ call sethiddenflagsall
156 160
 writebytetooffset \seteffect_effect_id 0x02036E28
157 161
 .endm
158 162
 
159
-.macro setecutscene
163
+.macro setcutscene
160 164
 writebytetooffset 0x80 0x4000044
161 165
 writebytetooffset 0x20 0x4000045
162 166
 .endm
@@ -335,10 +339,18 @@ setvar BATTLE_SEA_VAR \battlescreen_sea
335 339
 .endm
336 340
 
337 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 350
 setvar CALLASM_VAR 0x1
341 351
 special 0x68
352
+waitstate
353
+pause 0x20
342 354
 .endm
343 355
 
344 356
 .macro walkingscript walkingscript_value:req