소스 검색

Erste Scripts: Noch nicht fehlerfrei.

dragonflysots 6 년 전
부모
커밋
d904bcd700

+ 1
- 1
data/pkmn_tables/pokemon_stats.s 파일 보기

@@ -3,7 +3,7 @@
3 3
 #include <constants/egggroup.h>
4 4
 #include <constants/ep.h>
5 5
 #include <constants/gender.h>
6
-#include <constants/items.h>
6
+#include <pymap_constants.h>
7 7
 #include <constants/ptypes.h>
8 8
 
9 9
 .text

BIN
object/linked.rar 파일 보기


+ 3
- 3
patches/game_engine/quick_hacks.asm 파일 보기

@@ -1,10 +1,10 @@
1 1
 EGG_HATCH_LEVEL EQU 1
2 2
 EV_CAP EQU 252
3 3
 
4
-PLAYER_S_X EQU 0x0
5
-PLAYER_S_Y EQU 0x0
4
+PLAYER_S_X EQU 0x2
5
+PLAYER_S_Y EQU 0x2
6 6
 
7
-PLAYER_S_B EQU 0xFF
7
+PLAYER_S_B EQU 0x78
8 8
 PLAYER_S_M EQU 0x0
9 9
 
10 10
 // Something //

+ 1
- 1
sots-private

@@ -1 +1 @@
1
-Subproject commit 67d5677c7b48c4ba2bacc91d46456452aad0e81a
1
+Subproject commit 40f1f8be5e7a836e26d9e600e11909143eb8ea3d

+ 4
- 0
src/include/config/core.h 파일 보기

@@ -26,6 +26,10 @@
26 26
 /*Variables for walking script control*/
27 27
 #define WALK_SCRIPT_VAR         0x5009
28 28
 
29
+/*Variables for Change OW Sprite*/
30
+#define CHANGE_OW_FROM         0x500A
31
+#define CHANGE_OW_TO           0x500B
32
+
29 33
 /*Variable for custom text*/
30 34
 #define TEXT_VAR                0x500C
31 35
 

+ 1
- 1
src/include/constants/trainer.h 파일 보기

@@ -1,5 +1,5 @@
1 1
 #include <constants/pkmns.h>
2
-#include <constants/items.h>
2
+#include <pymap_constants.h>
3 3
 #include <constants/moves.h>
4 4
 
5 5
 #ifndef TRAINER_IDS_H

+ 19
- 10
src/include/pymap_constants.h 파일 보기

@@ -1,13 +1,3 @@
1
-@ARM Assembly macro definitions for map_namespaces
2
-
3
-
4
-.equ MAP_HESPERIA, 0x58
5
-.equ MAP_CARUN_CITY, 0x59
6
-.equ MAP_HESPERIAPFAD, 0x60
7
-.equ MAP_HESPERIAZWEIG, 0x61
8
-.equ MAP_CARUNPFAD, 0x62
9
-.equ MAP_TRAINERSCHULE, 0x62
10
-
11 1
 @ARM Assembly macro definitions for item
12 2
 
13 3
 
@@ -1789,6 +1779,25 @@
1789 1779
 
1790 1780
 
1791 1781
 
1782
+@ARM Assembly macro definitions for map_namespaces
1783
+
1784
+
1785
+.equ MAP_HESPERIA, 0x58
1786
+.equ MAP_CARUN_CITY, 0x59
1787
+.equ MAP_UNUMA, 0x5a
1788
+.equ MAP_URBANIA_CITY, 0x5b
1789
+.equ MAP_ROUTE_1, 0x5c
1790
+.equ MAP_ROUTE_2, 0x5d
1791
+.equ MAP_ROUTE_3, 0x5e
1792
+.equ MAP_ROUTE_4, 0x5f
1793
+.equ MAP_ROUTE_5, 0x60
1794
+.equ MAP_WALD_VON_YELNIA, 0x61
1795
+.equ MAP_TEAM_TUNDRA_HQ, 0x62
1796
+.equ MAP_BAUM_DES_LEBENS, 0x63
1797
+.equ MAP_HOEHLE_DER_WEACHTER, 0x64
1798
+
1799
+
1800
+
1792 1801
 @ARM Assembly macro definitions for map_showname
1793 1802
 
1794 1803
 

+ 37
- 0
src/include/script/flags_vars.h 파일 보기

@@ -0,0 +1,37 @@
1
+
2
+/*----------------------------------------------------------------------------------------------------------------------------------------
3
+    Hier sind die Flags sowie Vars des Spiels dokumentiert, bitte ausführlich dokumentieren!!!
4
+------------------------------------------------------------------------------------------------------------------------------------------*/
5
+#ifndef FLAGSVARS_IDS_H_
6
+#define FLAGSVARS_IDS_H_
7
+
8
+/*----------------------------------------------------------------------------------------------------------------------------------------
9
+    Flags beginnend ab 0x500 bis 0x700
10
+------------------------------------------------------------------------------------------------------------------------------------------*/
11
+#define FLAG_HIDDEN                 0x500       /*Versteckt NPCs beim Gamestart. Diese Flags ist gesetzt!*/
12
+#define FLAG_SCHOOL_MOVESPRITE      0x501       /*Schüler sind verstreut auf der Map, statt auf den Stühle.*/
13
+#define FLAG_HIDE_RIVAL_SCHOOL      0x502       /*Versteckt den Rivalen in der Trainerschule.*/
14
+#define FLAG_HIDE_RIVAL_SCHOOL_OUT  0x503       /*Versteckt den Rivalen am Eingang der Trainerschule.*/
15
+
16
+
17
+/*----------------------------------------------------------------------------------------------------------------------------------------
18
+    Vars beginnend ab 0x5050 bis 0x51FF
19
+------------------------------------------------------------------------------------------------------------------------------------------*/
20
+#define VAR_MODI                    0x5050         /*Schwierigkeitsgrad */
21
+    #define MODI_LEICHT             0x0
22
+    #define MODI_MITTEL             0x1
23
+    #define MODI_SCHWER             0x2
24
+
25
+#define VAR_MAPVAR_SCHOOL           0x5051        /*Mapvariable für den Mapscript in der Trainerschule.*/
26
+    #define VARVALUE_SCHOOL_02_1      0x0         /*Senseis Unterricht.*/
27
+    #define VARVALUE_SCHOOL_02_2      0x1         /*Das Gespräch mit dem Rivalen am Spint.*/
28
+    #define VARVALUE_SCHOOL_02_3      0x3         /*Das Gespräch draußen vor dem Eingang der Trainerschule mit dem Rivalen.*/
29
+    #define VARVALUE_SCHOOL_END       0x4         /*Schließt diese Variable ab.*/
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+#endif /* FLAGSVARS_IDS_H */

+ 29
- 3
src/include/script/language.h 파일 보기

@@ -5,8 +5,10 @@
5 5
 #include <script/movement.h>
6 6
 #include <script/mugshot.h>
7 7
 #include <script/battlescreen.h>
8
+#include <script/items.h>
8 9
 
9
-#include <script_constant.h> /*TODO: REMOVE ONCE THIS IS DEALT WITH*/
10
+@@Some Constants
11
+.equ PLAYER, 0xFF
10 12
 
11 13
 @@ Costum Specials
12 14
 .equ SP_BATCHMAPTILE, 0x7
@@ -19,6 +21,12 @@
19 21
 .equ B_GE, 0x4
20 22
 .equ B_NE, 0x5
21 23
 
24
+@@Spritefacing
25
+.equ SPRITEFACE_DOWN, 0x1
26
+.equ SPRITEFACE_UP, 0x2
27
+.equ SPRITEFACE_LEFT, 0x3
28
+.equ SPRITEFACE_RIGHT, 0x4
29
+
22 30
 @@ Important flags
23 31
 .equ FLAG_PKMN_MENU, 0x828
24 32
 .equ FLAG_POKDEX, 0x829
@@ -68,6 +76,19 @@
68 76
 
69 77
 @@ Custom commands
70 78
 
79
+.macro camerafreeze
80
+special 0x113
81
+.endm
82
+
83
+.macro cameraunfreeze
84
+special 0x114
85
+.endm
86
+
87
+.macro spritefacedelay spritefacedelay_id:req spritefacedelay_facing:req
88
+spriteface \spritefacedelay_id spritefacedelay_facing
89
+pause 0x20
90
+.endm
91
+
71 92
 .macro batchmaptilefromto batchmaptile_tiles_from:req batchmaptile_tiles_to:req batchmaptile_kollision_from:req batchmaptile_kollision_to:req
72 93
 setvar 0x8000 \batchmaptile_tiles_from
73 94
 setvar 0x8001 \batchmaptile_tiles_to
@@ -232,8 +253,7 @@ msgbox \mugmsg_textpointer \mugmsg_callstd
232 253
 setvar MUGHSOT_1_TABLE 0x0
233 254
 .endm
234 255
 
235
-.macro mugrival mugrival_textpointer:req mugrival_callstd:req mugrival_facing:req mugrival_emot=0
236
-setvar 0x8000 \mugrival_emot
256
+.macro mugrival mugrival_textpointer:req mugrival_callstd:req mugrival_facing:req
237 257
 .if \mugrival_facing==MUGFACE_LEFT
238 258
     call scr_mugrival_left
239 259
 .endif
@@ -284,6 +304,12 @@ setflag FLAG_SKIP_BATTLE_MUSIC
284 304
 clearflag FLAG_SKIP_BATTLE_MUSIC
285 305
 .endm
286 306
 
307
+.macro changeowto changeowto_from:req changeowto_to:req
308
+setvar CHANGE_OW_FROM \changeowto_from
309
+setvar CHANGE_OW_TO \changeowto_to
310
+.endm
311
+
312
+
287 313
 @@ Index commands
288 314
 
289 315
 .macro nop