/
GlobalScript.ash
65 lines (43 loc) · 1.55 KB
/
GlobalScript.ash
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
// Main header script - this will be included into every script in
// the game (local and global). Do not place functions here; rather,
// place import definitions and #define names here to be used by all
// scripts.
//import this function into all scripts so the dining room table and Chalmers npc can both point to it
import function StartTableConversation();
//enums for generic responses for interacting with objects
enum eGenericResponse {
eResponse_No,
eResponse_Uhh,
eResponse_Hmm,
eResponse_Impossible,
eResponse_Talk,
eResponse_DoesntHelp,
eResponse_WontLeave,
eResponse_PickupChalmers,
eResponse_Yummy
};
//import this function into all scripts so dialogue choices can all point to it
import function GenericResponse(eGenericResponse responseType);
//booleans to track the state of the window object
//import bool OvenHasBeenOpened;
//import bool WindowHasBeenLookedOut;
//import bool CreditsHaveRolled;
//note ^ now defined as Global Variables
/*
//enums for the current state of the window object
enum eWindowState {
eWindow_Default,
eWindow_LookedAt,
eWindow_Opened,
eWindow_BeenToKrustyBurger
};
*/
//variables to increment to control which "random" response is next
int iResponse_Uhh_Selection = 0;
int iResponse_Hmm_Selection = 0;
int iResponse_No_Selection = 0;
int iResponse_Yummy_Selection = 0;
int iResponse_PickupChalmers_Selection = 0;
//defining these as Global Variables instead so they can controlled from room scripts
//int iResponse_DoesntHelp_Selection = 0;
//int iResponse_WontLeave_Selection = 0;