World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Events.h
См. документацию.
1 #pragma once
2 #include <array>
3 
4 /* 167 */
5 #pragma pack(push, 1)
6 struct EventIndex {
7  int uEventID;
9  unsigned int uEventOffsetInEVT;
10 };
11 #pragma pack(pop)
12 
13 // raw event struct
14 // header
15 // size_event 1 header+data
16 // event id 2 3
17 // event_sequence_num
18 // event data
19 #pragma pack(push, 1)
20 struct _evt_raw {
21  unsigned char _e_size;
22  unsigned char v1;
23  unsigned char v2;
24  unsigned char v3;
25 
26  unsigned char _e_type;
27  unsigned char v5;
28  unsigned char v6;
29  unsigned char v7;
30  unsigned char v8;
31  unsigned char v9;
32  unsigned char v10;
33  unsigned char v11;
34  unsigned char v12;
35  unsigned char v13;
36  unsigned char v14;
37  unsigned char v15;
38  unsigned char v16;
39  unsigned char v17;
40  unsigned char v18;
41  unsigned char v19;
42  unsigned char v20;
43  unsigned char v21;
44  unsigned char v22;
45  unsigned char v23;
46  unsigned char v24;
47  unsigned char v25;
48  unsigned char v26;
49  unsigned char v27;
50  unsigned char v28;
51  unsigned char v29;
52  unsigned char v30;
53  unsigned char v31;
54  unsigned char v32;
55  unsigned char tail[128];
56 };
57 #pragma pack(pop)
58 
59 /* 310 */
60 enum EventType {
61  EVENT_Exit = 0x1,
75  EVENT_Add = 0x10,
77  EVENT_Set = 0x12,
87  EVENT_OnTimer = 0x1F,
92  EVENT_Jmp = 0x24,
96  EVENT_MoveNPC = 0x28,
125 };
126 
127 /* 311 */
129  VAR_Sex = 0x1,
130  VAR_Class = 0x2,
132  VAR_MaxHP = 0x4,
134  VAR_MaxSP = 0x6,
139  VAR_Age = 0xB,
140  VAR_Award = 0xC,
142  VAR_Race = 0xE,
145  VAR_Hour = 0x12,
165  VAR_BaseLuck = 0x26,
198  VAR_AxeSkill = 0x47,
200  VAR_BowSkill = 0x49,
208  VAR_AirSkill = 0x51,
232  VAR_Cursed = 0x69,
233  VAR_Weak = 0x6A,
234  VAR_Asleep = 0x6B,
235  VAR_Afraid = 0x6C,
236  VAR_Drunk = 0x6D,
237  VAR_Insane = 0x6E,
246  VAR_Dead = 0x77,
247  VAR_Stoned = 0x78,
263  VAR_NPCs2 = 0xE8,
264  VAR_IsFlying = 0xF0,
268  VAR_MonthIs = 0xF4,
269  VAR_Counter1 = 0xF5,
270  VAR_Counter2 = 0xF6,
271  VAR_Counter3 = 0xF7,
272  VAR_Counter4 = 0xF8,
273  VAR_Counter5 = 0xF9,
274  VAR_Counter6 = 0xFa,
275  VAR_Counter7 = 0xFB,
276  VAR_Counter8 = 0xFC,
277  VAR_Counter9 = 0xFD,
282  VAR_History_0 = 0x114,
283  VAR_History_28 = 0x130,
284  VAR_Unknown1 = 0x131,
285  VAR_GoldInBank = 0x132,
286  VAR_NumDeaths = 0x133,
293  VAR_Invisible = 0x13A,
295 };
296 
297 #define EVT_WORD(x) *(unsigned __int16 *)&x
298 #define EVT_DWORD(x) *(unsigned int *)&x
299 #define EVT_STRING(x) (unsigned char *)&x
300 #define EVT_BYTE(x) (unsigned char)x
301 
302 extern std::array<EventIndex, 4400> pSomeOtherEVT_Events;
303 extern signed int uSomeOtherEVT_NumEvents;
304 extern char *pSomeOtherEVT;
305 extern std::array<EventIndex, 4400> pSomeEVT_Events;
306 extern signed int uSomeEVT_NumEvents;
307 extern char *pSomeEVT;
308 
309 extern unsigned int uGlobalEVT_NumEvents;
310 extern unsigned int uGlobalEVT_Size;
311 extern std::array<char, 46080> pGlobalEVT;
312 extern std::array<EventIndex, 4400> pGlobalEVT_Index;
313 
314 extern std::array<unsigned int, 500> pLevelStrOffsets;
315 extern unsigned int uLevelStrNumStrings;
316 extern unsigned int uLevelStrFileSize;
317 extern signed int uLevelEVT_NumEvents;
318 extern unsigned int uLevelEVT_Size;
319 extern std::array<char, 9216> pLevelStr;
320 extern std::array<char, 9216> pLevelEVT;
321 extern std::array<EventIndex, 4400> pLevelEVT_Index;
322 
323 unsigned int LoadEventsToBuffer(const char *pContainerName, char *pBuffer,
324  unsigned int uBufferSize);
325 void Initialize_GlobalEVT();
327 void EventProcessor(int uEventID, int a2, int a3, int entry_line = 0);
328 char *GetEventHintString(unsigned int uEventID); // idb
329 
330 /* 312 */
331 #pragma pack(push, 1)
332 struct ByteArray {
333  char f[65535];
334 };
335 #pragma pack(pop)
336 
337 void init_event_triggers();
338 void check_event_triggers();
339 bool sub_4465DF_check_season(int a1);
341  int x, int y, int z, int group,
342  unsigned int uUniqueName);
VAR_Cursed
@ VAR_Cursed
Definition: Events.h:232
EVENT_IsActorAssasinated
@ EVENT_IsActorAssasinated
Definition: Events.h:108
VAR_SkillChain
@ VAR_SkillChain
Definition: Events.h:205
VAR_MindSkill
@ VAR_MindSkill
Definition: Events.h:212
EVENT_ShowMessage
@ EVENT_ShowMessage
Definition: Events.h:86
VAR_SpearSkill
@ VAR_SpearSkill
Definition: Events.h:199
VAR_PerceptionSkill
@ VAR_PerceptionSkill
Definition: Events.h:221
VAR_MaxHP
@ VAR_MaxHP
Definition: Events.h:132
VAR_EarthResistanceBonus
@ VAR_EarthResistanceBonus
Definition: Events.h:187
VAR_RandomFood
@ VAR_RandomFood
Definition: Events.h:151
_evt_raw::v14
unsigned char v14
Definition: Events.h:36
VAR_LeatherSkill
@ VAR_LeatherSkill
Definition: Events.h:204
VAR_PersonalityBonus
@ VAR_PersonalityBonus
Definition: Events.h:154
EVENT_ChangeGroup
@ EVENT_ChangeGroup
Definition: Events.h:110
uSomeOtherEVT_NumEvents
signed int uSomeOtherEVT_NumEvents
Definition: Events.cpp:37
EVENT_MoveToMap
@ EVENT_MoveToMap
Definition: Events.h:66
_evt_raw::v23
unsigned char v23
Definition: Events.h:45
int16_t
signed __int16 int16_t
Definition: SDL_config.h:36
EVENT_EnableDateTimer
@ EVENT_EnableDateTimer
Definition: Events.h:118
VAR_BaseIntellect
@ VAR_BaseIntellect
Definition: Events.h:160
pLevelEVT
std::array< char, 9216 > pLevelEVT
Definition: Events.cpp:54
_evt_raw::v22
unsigned char v22
Definition: Events.h:44
VAR_Asleep
@ VAR_Asleep
Definition: Events.h:234
uLevelStrFileSize
unsigned int uLevelStrFileSize
Definition: Events.cpp:50
VAR_MeditationSkill
@ VAR_MeditationSkill
Definition: Events.h:220
VAR_FireResistanceBonus
@ VAR_FireResistanceBonus
Definition: Events.h:184
VAR_Insane
@ VAR_Insane
Definition: Events.h:237
EVENT_Exit
@ EVENT_Exit
Definition: Events.h:61
EVENT_Jmp
@ EVENT_Jmp
Definition: Events.h:92
VAR_DarkResistance
@ VAR_DarkResistance
Definition: Events.h:181
VAR_NumBounties
@ VAR_NumBounties
Definition: Events.h:287
VAR_Counter4
@ VAR_Counter4
Definition: Events.h:272
VAR_SpiritResistance
@ VAR_SpiritResistance
Definition: Events.h:177
VAR_IsSpeedMoreThanBase
@ VAR_IsSpeedMoreThanBase
Definition: Events.h:259
VAR_Afraid
@ VAR_Afraid
Definition: Events.h:235
VAR_DodgeSkill
@ VAR_DodgeSkill
Definition: Events.h:225
VAR_Experience
@ VAR_Experience
Definition: Events.h:141
EVENT_CheckSkill
@ EVENT_CheckSkill
Definition: Events.h:99
VAR_Hour
@ VAR_Hour
Definition: Events.h:145
VAR_Counter8
@ VAR_Counter8
Definition: Events.h:276
_evt_raw::v16
unsigned char v16
Definition: Events.h:38
_evt_raw::v7
unsigned char v7
Definition: Events.h:29
_evt_raw::v17
unsigned char v17
Definition: Events.h:39
VAR_IsFlying
@ VAR_IsFlying
Definition: Events.h:264
VAR_MagicResistance
@ VAR_MagicResistance
Definition: Events.h:183
EVENT_OnMapReload
@ EVENT_OnMapReload
Definition: Events.h:93
EVENT_SetActorGroup
@ EVENT_SetActorGroup
Definition: Events.h:104
EventType
EventType
Definition: Events.h:60
VAR_Age
@ VAR_Age
Definition: Events.h:139
VAR_AirSkill
@ VAR_AirSkill
Definition: Events.h:208
z
GLdouble GLdouble z
Definition: SDL_opengl_glext.h:407
VAR_ActualAccuracy
@ VAR_ActualAccuracy
Definition: Events.h:171
level
GLint level
Definition: SDL_opengl.h:1572
VAR_MerchantSkill
@ VAR_MerchantSkill
Definition: Events.h:217
VAR_SwordSkill
@ VAR_SwordSkill
Definition: Events.h:196
VAR_IntellectBonus
@ VAR_IntellectBonus
Definition: Events.h:153
_evt_raw::v30
unsigned char v30
Definition: Events.h:52
EventIndex::uEventOffsetInEVT
unsigned int uEventOffsetInEVT
Definition: Events.h:9
EVENT_SetSnow
@ EVENT_SetSnow
Definition: Events.h:70
ByteArray
Definition: Events.h:332
count
GLuint GLuint GLsizei count
Definition: SDL_opengl.h:1571
_evt_raw::v18
unsigned char v18
Definition: Events.h:40
uLevelEVT_Size
unsigned int uLevelEVT_Size
Definition: Events.cpp:52
_evt_raw::tail
unsigned char tail[128]
Definition: Events.h:55
VAR_Counter3
@ VAR_Counter3
Definition: Events.h:271
EVENT_ChangeEvent
@ EVENT_ChangeEvent
Definition: Events.h:98
_evt_raw::v20
unsigned char v20
Definition: Events.h:42
VAR_MaceSkill
@ VAR_MaceSkill
Definition: Events.h:201
VAR_DaggerSkill
@ VAR_DaggerSkill
Definition: Events.h:197
VAR_CurrentHP
@ VAR_CurrentHP
Definition: Events.h:131
VAR_BodybuildingSkill
@ VAR_BodybuildingSkill
Definition: Events.h:219
VAR_HiredNPCHasSpeciality
@ VAR_HiredNPCHasSpeciality
Definition: Events.h:265
VAR_QBits_QuestsDone
@ VAR_QBits_QuestsDone
Definition: Events.h:143
VAR_AirResistance
@ VAR_AirResistance
Definition: Events.h:174
_evt_raw::v31
unsigned char v31
Definition: Events.h:53
_evt_raw::_e_type
unsigned char _e_type
Definition: Events.h:26
VAR_Invisible
@ VAR_Invisible
Definition: Events.h:293
VAR_ReputationInCurrentLocation
@ VAR_ReputationInCurrentLocation
Definition: Events.h:281
VAR_BaseLevel
@ VAR_BaseLevel
Definition: Events.h:137
EVENT_IsTotalBountyHuntingAwardInRange
@ EVENT_IsTotalBountyHuntingAwardInRange
Definition: Events.h:123
VAR_UnknownTimeEvent19
@ VAR_UnknownTimeEvent19
Definition: Events.h:280
EVENT_ToggleActorGroupFlag
@ EVENT_ToggleActorGroupFlag
Definition: Events.h:113
EVENT_ReceiveDamage
@ EVENT_ReceiveDamage
Definition: Events.h:69
VAR_AlchemySkill
@ VAR_AlchemySkill
Definition: Events.h:230
VAR_NumSkillPoints
@ VAR_NumSkillPoints
Definition: Events.h:267
GetEventHintString
char * GetEventHintString(unsigned int uEventID)
Definition: Events.cpp:1159
VAR_BowSkill
@ VAR_BowSkill
Definition: Events.h:200
LoadLevel_InitializeLevelEvt
void LoadLevel_InitializeLevelEvt()
Definition: Events.cpp:108
pGlobalEVT
std::array< char, 46080 > pGlobalEVT
Definition: Events.cpp:45
_evt_raw::v9
unsigned char v9
Definition: Events.h:31
VAR_DarkSkill
@ VAR_DarkSkill
Definition: Events.h:215
EventIndex::event_sequence_num
int event_sequence_num
Definition: Events.h:8
VAR_Drunk
@ VAR_Drunk
Definition: Events.h:236
VAR_Unknown1
@ VAR_Unknown1
Definition: Events.h:284
VAR_BaseAccuracy
@ VAR_BaseAccuracy
Definition: Events.h:164
EventIndex
Definition: Events.h:6
VAR_Eradicated
@ VAR_Eradicated
Definition: Events.h:248
EVENT_OnTimer
@ EVENT_OnTimer
Definition: Events.h:87
EVENT_CharacterAnimation
@ EVENT_CharacterAnimation
Definition: Events.h:115
EVENT_SetNPCTopic
@ EVENT_SetNPCTopic
Definition: Events.h:95
VAR_StaffSkill
@ VAR_StaffSkill
Definition: Events.h:195
VAR_StealingSkill
@ VAR_StealingSkill
Definition: Events.h:229
VAR_Dead
@ VAR_Dead
Definition: Events.h:246
VAR_WaterResistance
@ VAR_WaterResistance
Definition: Events.h:175
uGlobalEVT_Size
unsigned int uGlobalEVT_Size
Definition: Events.cpp:44
EVENT_SetNPCGreeting
@ EVENT_SetNPCGreeting
Definition: Events.h:106
VAR_BaseEndurance
@ VAR_BaseEndurance
Definition: Events.h:162
VAR_Unconsious
@ VAR_Unconsious
Definition: Events.h:245
uLevelEVT_NumEvents
signed int uLevelEVT_NumEvents
Definition: Events.cpp:51
_evt_raw::v8
unsigned char v8
Definition: Events.h:30
EVENT_CheckItemsCount
@ EVENT_CheckItemsCount
Definition: Events.h:120
VAR_DayOfYear
@ VAR_DayOfYear
Definition: Events.h:146
EVENT_Set
@ EVENT_Set
Definition: Events.h:77
VAR_FireResistance
@ VAR_FireResistance
Definition: Events.h:173
VAR_BodyResistance
@ VAR_BodyResistance
Definition: Events.h:179
EVENT_MouseOver
@ EVENT_MouseOver
Definition: Events.h:64
_evt_raw::v6
unsigned char v6
Definition: Events.h:28
pSomeOtherEVT_Events
std::array< EventIndex, 4400 > pSomeOtherEVT_Events
Definition: Events.cpp:36
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
VAR_MindResistanceBonus
@ VAR_MindResistanceBonus
Definition: Events.h:189
EventProcessor
void EventProcessor(int uEventID, int a2, int a3, int entry_line=0)
Definition: Events.cpp:260
VAR_PrisonTerms
@ VAR_PrisonTerms
Definition: Events.h:288
VAR_History_0
@ VAR_History_0
Definition: Events.h:282
VAR_UnarmedSkill
@ VAR_UnarmedSkill
Definition: Events.h:226
VAR_FixedFood
@ VAR_FixedFood
Definition: Events.h:150
VAR_IsLuckMoreThanBase
@ VAR_IsLuckMoreThanBase
Definition: Events.h:261
VAR_ActualAC
@ VAR_ActualAC
Definition: Events.h:135
EVENT_ShowFace
@ EVENT_ShowFace
Definition: Events.h:68
VAR_ActualLuck
@ VAR_ActualLuck
Definition: Events.h:172
EVENT_Add
@ EVENT_Add
Definition: Events.h:75
pSomeEVT_Events
std::array< EventIndex, 4400 > pSomeEVT_Events
Definition: Events.cpp:39
VAR_MindResistance
@ VAR_MindResistance
Definition: Events.h:178
_evt_raw::v19
unsigned char v19
Definition: Events.h:41
VAR_PoisonedGreen
@ VAR_PoisonedGreen
Definition: Events.h:238
EVENT_NPCSetItem
@ EVENT_NPCSetItem
Definition: Events.h:105
VAR_LuckBonus
@ VAR_LuckBonus
Definition: Events.h:158
VAR_Stoned
@ VAR_Stoned
Definition: Events.h:247
EVENT_SetNPCGroupNews
@ EVENT_SetNPCGroupNews
Definition: Events.h:103
VAR_Counter2
@ VAR_Counter2
Definition: Events.h:270
VAR_PoisonedYellow
@ VAR_PoisonedYellow
Definition: Events.h:240
VAR_PlateSkill
@ VAR_PlateSkill
Definition: Events.h:206
_evt_raw::v27
unsigned char v27
Definition: Events.h:49
pLevelStr
std::array< char, 9216 > pLevelStr
Definition: Events.cpp:53
VAR_IsMightMoreThanBase
@ VAR_IsMightMoreThanBase
Definition: Events.h:255
_evt_raw::v25
unsigned char v25
Definition: Events.h:47
VAR_Class
@ VAR_Class
Definition: Events.h:130
_evt_raw::v26
unsigned char v26
Definition: Events.h:48
VAR_MapPersistentVariable_0
@ VAR_MapPersistentVariable_0
Definition: Events.h:250
VAR_AirResistanceBonus
@ VAR_AirResistanceBonus
Definition: Events.h:185
pSomeEVT
char * pSomeEVT
Definition: Events.cpp:41
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
EVENT_IsActorAlive
@ EVENT_IsActorAlive
Definition: Events.h:107
VAR_Race
@ VAR_Race
Definition: Events.h:142
VAR_BlasterSkill
@ VAR_BlasterSkill
Definition: Events.h:202
group
GLboolean GLuint group
Definition: SDL_opengl_glext.h:4999
_evt_raw::v13
unsigned char v13
Definition: Events.h:35
EVENT_EndCanShowDialogItem
@ EVENT_EndCanShowDialogItem
Definition: Events.h:101
EVENT_SummonItem
@ EVENT_SummonItem
Definition: Events.h:90
VAR_ArenaWinsSquire
@ VAR_ArenaWinsSquire
Definition: Events.h:290
VAR_ArenaWinsLord
@ VAR_ArenaWinsLord
Definition: Events.h:292
EVENT_ChangeGroupAlly
@ EVENT_ChangeGroupAlly
Definition: Events.h:111
VAR_LearningSkill
@ VAR_LearningSkill
Definition: Events.h:231
VAR_LevelModifier
@ VAR_LevelModifier
Definition: Events.h:138
_evt_raw::v1
unsigned char v1
Definition: Events.h:22
VAR_BodySkill
@ VAR_BodySkill
Definition: Events.h:213
uSomeEVT_NumEvents
signed int uSomeEVT_NumEvents
Definition: Events.cpp:40
VAR_MightBonus
@ VAR_MightBonus
Definition: Events.h:152
VAR_Paralyzed
@ VAR_Paralyzed
Definition: Events.h:244
VAR_GoldInBank
@ VAR_GoldInBank
Definition: Events.h:285
VAR_EarthSkill
@ VAR_EarthSkill
Definition: Events.h:210
VAR_BaseLuck
@ VAR_BaseLuck
Definition: Events.h:165
EVENT_ChangeDoorState
@ EVENT_ChangeDoorState
Definition: Events.h:74
LoadEventsToBuffer
unsigned int LoadEventsToBuffer(const char *pContainerName, char *pBuffer, unsigned int uBufferSize)
Definition: Events.cpp:59
EVENT_IsNPCInParty
@ EVENT_IsNPCInParty
Definition: Events.h:124
f
GLfloat f
Definition: SDL_opengl_glext.h:1873
EVENT_RandomGoTo
@ EVENT_RandomGoTo
Definition: Events.h:83
VAR_Counter6
@ VAR_Counter6
Definition: Events.h:274
EVENT_ToggleActorFlag
@ EVENT_ToggleActorFlag
Definition: Events.h:82
VAR_IsEnduranceMoreThanBase
@ VAR_IsEnduranceMoreThanBase
Definition: Events.h:258
_evt_raw::v10
unsigned char v10
Definition: Events.h:32
_evt_raw::v32
unsigned char v32
Definition: Events.h:54
VAR_PoisonedRed
@ VAR_PoisonedRed
Definition: Events.h:242
VAR_IsAccuracyMoreThanBase
@ VAR_IsAccuracyMoreThanBase
Definition: Events.h:260
VAR_SpeedBonus
@ VAR_SpeedBonus
Definition: Events.h:156
EVENT_LocationName
@ EVENT_LocationName
Definition: Events.h:65
EVENT_SetCanShowDialogItem
@ EVENT_SetCanShowDialogItem
Definition: Events.h:102
_evt_raw::v3
unsigned char v3
Definition: Events.h:24
EVENT_OnLongTimer
@ EVENT_OnLongTimer
Definition: Events.h:94
EVENT_SetSprite
@ EVENT_SetSprite
Definition: Events.h:72
VAR_Sex
@ VAR_Sex
Definition: Events.h:129
VAR_Counter1
@ VAR_Counter1
Definition: Events.h:269
VAR_FixedGold
@ VAR_FixedGold
Definition: Events.h:148
VAR_NumDeaths
@ VAR_NumDeaths
Definition: Events.h:286
sub_4465DF_check_season
bool sub_4465DF_check_season(int a1)
Definition: Events.cpp:1247
VAR_ActualIntellect
@ VAR_ActualIntellect
Definition: Events.h:167
VAR_DisarmTrapSkill
@ VAR_DisarmTrapSkill
Definition: Events.h:224
VAR_SpiritSkill
@ VAR_SpiritSkill
Definition: Events.h:211
VAR_NPCs2
@ VAR_NPCs2
Definition: Events.h:263
VAR_AxeSkill
@ VAR_AxeSkill
Definition: Events.h:198
EVENT_SummonMonsters
@ EVENT_SummonMonsters
Definition: Events.h:78
EVENT_CheckSeason
@ EVENT_CheckSeason
Definition: Events.h:112
VAR_CurrentSP
@ VAR_CurrentSP
Definition: Events.h:133
VAR_ActualMight
@ VAR_ActualMight
Definition: Events.h:166
VAR_IsIntellectMoreThanBase
@ VAR_IsIntellectMoreThanBase
Definition: Events.h:256
EVENT_CastSpell
@ EVENT_CastSpell
Definition: Events.h:79
_evt_raw::v15
unsigned char v15
Definition: Events.h:37
VAR_LightResistanceBonus
@ VAR_LightResistanceBonus
Definition: Events.h:191
VAR_Award
@ VAR_Award
Definition: Events.h:140
EventIndex::uEventID
int uEventID
Definition: Events.h:7
VAR_ActualEndurance
@ VAR_ActualEndurance
Definition: Events.h:169
VAR_Counter5
@ VAR_Counter5
Definition: Events.h:273
check_event_triggers
void check_event_triggers()
Definition: Events.cpp:1215
VAR_DarkResistanceBonus
@ VAR_DarkResistanceBonus
Definition: Events.h:192
EVENT_SetFacesBit
@ EVENT_SetFacesBit
Definition: Events.h:81
VAR_IsPersonalityMoreThanBase
@ VAR_IsPersonalityMoreThanBase
Definition: Events.h:257
_evt_raw::v11
unsigned char v11
Definition: Events.h:33
VAR_MapPersistentVariable_74
@ VAR_MapPersistentVariable_74
Definition: Events.h:251
VAR_LightResistance
@ VAR_LightResistance
Definition: Events.h:180
VAR_BasePersonality
@ VAR_BasePersonality
Definition: Events.h:161
VAR_PlayerBits
@ VAR_PlayerBits
Definition: Events.h:262
EVENT_SetTexture
@ EVENT_SetTexture
Definition: Events.h:71
EVENT_OnCanShowDialogItemCmp
@ EVENT_OnCanShowDialogItemCmp
Definition: Events.h:100
EVENT_OnMapLeave
@ EVENT_OnMapLeave
Definition: Events.h:109
VAR_ThieverySkill
@ VAR_ThieverySkill
Definition: Events.h:223
VAR_MapPersistentVariable_99
@ VAR_MapPersistentVariable_99
Definition: Events.h:253
_evt_raw::v28
unsigned char v28
Definition: Events.h:50
VAR_FireSkill
@ VAR_FireSkill
Definition: Events.h:207
VariableType
VariableType
Definition: Events.h:128
_evt_raw::_e_size
unsigned char _e_size
Definition: Events.h:21
EVENT_SpeakNPC
@ EVENT_SpeakNPC
Definition: Events.h:80
VAR_MonthIs
@ VAR_MonthIs
Definition: Events.h:268
VAR_AccuracyBonus
@ VAR_AccuracyBonus
Definition: Events.h:157
VAR_ArenaWinsPage
@ VAR_ArenaWinsPage
Definition: Events.h:289
uLevelStrNumStrings
unsigned int uLevelStrNumStrings
Definition: Events.cpp:49
VAR_RandomGold
@ VAR_RandomGold
Definition: Events.h:149
VAR_ActualSpeed
@ VAR_ActualSpeed
Definition: Events.h:170
VAR_ArmsmasterSkill
@ VAR_ArmsmasterSkill
Definition: Events.h:228
VAR_WaterResistanceBonus
@ VAR_WaterResistanceBonus
Definition: Events.h:186
VAR_MagicResistanceBonus
@ VAR_MagicResistanceBonus
Definition: Events.h:194
sub_448CF4_spawn_monsters
void sub_448CF4_spawn_monsters(int16_t typeindex, int16_t level, int count, int x, int y, int z, int group, unsigned int uUniqueName)
VAR_ItemEquipped
@ VAR_ItemEquipped
Definition: Events.h:294
_evt_raw
Definition: Events.h:20
VAR_ACModifier
@ VAR_ACModifier
Definition: Events.h:136
VAR_UnknownTimeEvent0
@ VAR_UnknownTimeEvent0
Definition: Events.h:279
VAR_BodyResistanceBonus
@ VAR_BodyResistanceBonus
Definition: Events.h:190
EVENT_InputString
@ EVENT_InputString
Definition: Events.h:84
VAR_PhysicalResistanceBonus
@ VAR_PhysicalResistanceBonus
Definition: Events.h:193
pLevelStrOffsets
std::array< unsigned int, 500 > pLevelStrOffsets
Definition: Events.cpp:48
EVENT_StopAnimation
@ EVENT_StopAnimation
Definition: Events.h:119
VAR_Counter7
@ VAR_Counter7
Definition: Events.h:275
VAR_SpiritResistanceBonus
@ VAR_SpiritResistanceBonus
Definition: Events.h:188
VAR_IdentifyItemSkill
@ VAR_IdentifyItemSkill
Definition: Events.h:216
_evt_raw::v21
unsigned char v21
Definition: Events.h:43
_evt_raw::v5
unsigned char v5
Definition: Events.h:27
VAR_DayOfWeek
@ VAR_DayOfWeek
Definition: Events.h:147
VAR_ShieldSkill
@ VAR_ShieldSkill
Definition: Events.h:203
VAR_LightSkill
@ VAR_LightSkill
Definition: Events.h:214
VAR_BaseMight
@ VAR_BaseMight
Definition: Events.h:159
EVENT_RemoveItems
@ EVENT_RemoveItems
Definition: Events.h:121
EVENT_SpecialJump
@ EVENT_SpecialJump
Definition: Events.h:122
EVENT_MoveNPC
@ EVENT_MoveNPC
Definition: Events.h:96
VAR_DiplomacySkill
@ VAR_DiplomacySkill
Definition: Events.h:222
EVENT_OpenChest
@ EVENT_OpenChest
Definition: Events.h:67
EVENT_OnDateTimer
@ EVENT_OnDateTimer
Definition: Events.h:117
VAR_RepairSkill
@ VAR_RepairSkill
Definition: Events.h:218
pGlobalEVT_Index
std::array< EventIndex, 4400 > pGlobalEVT_Index
Definition: Events.cpp:46
EVENT_SetActorItem
@ EVENT_SetActorItem
Definition: Events.h:116
VAR_History_28
@ VAR_History_28
Definition: Events.h:283
EVENT_ToggleChestFlag
@ EVENT_ToggleChestFlag
Definition: Events.h:114
pLevelEVT_Index
std::array< EventIndex, 4400 > pLevelEVT_Index
Definition: Events.cpp:55
EVENT_PlaySound
@ EVENT_PlaySound
Definition: Events.h:63
EVENT_SpeakInHouse
@ EVENT_SpeakInHouse
Definition: Events.h:62
EVENT_Substract
@ EVENT_Substract
Definition: Events.h:76
EVENT_Compare
@ EVENT_Compare
Definition: Events.h:73
EVENT_ForPartyMember
@ EVENT_ForPartyMember
Definition: Events.h:91
VAR_CircusPrises
@ VAR_CircusPrises
Definition: Events.h:266
VAR_ActualPersonality
@ VAR_ActualPersonality
Definition: Events.h:168
VAR_DiseasedRed
@ VAR_DiseasedRed
Definition: Events.h:243
EVENT_GiveItem
@ EVENT_GiveItem
Definition: Events.h:97
Initialize_GlobalEVT
void Initialize_GlobalEVT()
Definition: Events.cpp:73
VAR_EarthResistance
@ VAR_EarthResistance
Definition: Events.h:176
VAR_DiseasedYellow
@ VAR_DiseasedYellow
Definition: Events.h:241
VAR_IdentifyMonsterSkill
@ VAR_IdentifyMonsterSkill
Definition: Events.h:227
VAR_PlayerItemInHands
@ VAR_PlayerItemInHands
Definition: Events.h:144
VAR_Weak
@ VAR_Weak
Definition: Events.h:233
VAR_ArenaWinsKnight
@ VAR_ArenaWinsKnight
Definition: Events.h:291
EVENT_PressAnyKey
@ EVENT_PressAnyKey
Definition: Events.h:89
EVENT_StatusText
@ EVENT_StatusText
Definition: Events.h:85
_evt_raw::v2
unsigned char v2
Definition: Events.h:23
VAR_AutoNotes
@ VAR_AutoNotes
Definition: Events.h:254
VAR_Counter9
@ VAR_Counter9
Definition: Events.h:277
pSomeOtherEVT
char * pSomeOtherEVT
Definition: Events.cpp:38
_evt_raw::v29
unsigned char v29
Definition: Events.h:51
VAR_PhysicalResistance
@ VAR_PhysicalResistance
Definition: Events.h:182
VAR_EnduranceBonus
@ VAR_EnduranceBonus
Definition: Events.h:155
uGlobalEVT_NumEvents
unsigned int uGlobalEVT_NumEvents
Definition: Events.cpp:43
VAR_WaterSkill
@ VAR_WaterSkill
Definition: Events.h:209
VAR_MapPersistentVariable_75
@ VAR_MapPersistentVariable_75
Definition: Events.h:252
init_event_triggers
void init_event_triggers()
Definition: Events.cpp:1205
VAR_MaxSP
@ VAR_MaxSP
Definition: Events.h:134
VAR_BaseSpeed
@ VAR_BaseSpeed
Definition: Events.h:163
_evt_raw::v24
unsigned char v24
Definition: Events.h:46
VAR_MajorCondition
@ VAR_MajorCondition
Definition: Events.h:249
_evt_raw::v12
unsigned char v12
Definition: Events.h:34
VAR_Counter10
@ VAR_Counter10
Definition: Events.h:278
EVENT_ToggleIndoorLight
@ EVENT_ToggleIndoorLight
Definition: Events.h:88
VAR_DiseasedGreen
@ VAR_DiseasedGreen
Definition: Events.h:239