-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomDefinitions.event
65 lines (47 loc) · 2.36 KB
/
CustomDefinitions.event
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
#include "Definitions/UnitDefinitions.event"
#include "Definitions/ClassDefinitions.event"
#include "Definitions/EventDefinitions.event"
#include "Definitions/ItemDefinitions.event"
#include "Definitions/GraphicsDefinitions.event"
#include "Definitions/MiscDefinitions.event"
//Chapter item permissions
//Counting backwards
//Door key = third bit
//Lockpick = second bit
//Antitoxin = first bit
//Please remember that to define binary, you add "b" to the end of your binary
#define AIItemUse(Index, permission) "PUSH; ORG ($D8538 + Index * 0x4); BYTE permission; POP"
//Skirmish chapters
#define SkirmishChapter(Index,ChapterID) "PUSH; ORG ($206948 + Index); BYTE ChapterID; POP"
#define FreeSpace 0x8b2a610
#define FreeSpaceBLRange 0x81c1ec0
#define currentAddress currentOffset & ~(0x8000000)
#define ChapterTileset(chapter, object, palette, config) "PUSH; ORG 0x8b0890 + (148* chapter) + 4; SHORT object; BYTE palette config; POP"
#define ChapterTileAnims(chapter, anim1, anim2) "PUSH; ORG 0x8b0890 + (148* chapter) + 9; BYTE anim1 anim2; POP"
//#ifndef ItemTable
// #define ItemTable 0x809B10
//#endif
#ifndef DebuffTable
#define DebuffTable 0x0203FA58
#define DebuffTableSize 0x00000440
#endif
#ifndef ChapterDataTable
#define ChapterDataTable 0x8B0890
#define ChapterDataTableEntSize 148
#endif
#define LunarBrace MoonBracelet
#define SolarBrace SunBracelet
// Attribute for defining items with passive stat bonuses
#define PASSIVE_ITEM_BOOSTS_ATTR 0x00800000
// Attribute for defining items with passive skills
#define PASSIVE_ITEM_SKILL_ATTR 0x00800000
// this is for if you use the legacy way of define item attributes in your table (this is for byte 3)
// (which is sadly what the included table also does TODO: fix that)
#define PassiveBoosts 0x80
#define StatBonus(HPB,StrB,MagB,SklB,SpdB,DefB,ResB,LckB,MovB,ConB) "BYTE HPB StrB SklB SpdB DefB ResB LckB MovB ConB MagB 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0"
#define GrowthBonus(HPB,StrB,MagB,SklB,SpdB,DefB,ResB,LckB) "BYTE 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 HPB StrB SklB SpdB DefB ResB LckB MagB 0x0 0x0"
//item ID for skill scroll
#define SkillScroll 0xBC
#include "Extensions/ProcDefinitions.txt"
#include "EngineHacks/SkillSystem_FE8/EngineHacks/SkillSystem/skill_definitions.event"
#define __DEBUG__ // Uncomment to get the Debug startup menu :p