source: OniTrainer/OniTrainer_Packaged/Needed Stuff/global/OniPlayer.bsl@ 411

Last change on this file since 411 was 258, checked in by alloc, 16 years ago
File size: 1.1 KB
Line 
1#THIS SCRIPT IS NEEDED FOR ONI-TRAINER TO USE THE MESSAGE-, SPAWN AND INGAME-MENU-FUNCTIONS!
2#Put this script in any levels folders in which you want to use this function.
3#Then add "fork OniPlayer" to the line above "start" in the lvl's main.bsl.
4
5var int OnyPlayer_script_start = (12345);
6var int OniPlayer_disp_msg = (255);
7var int OniPlayer_menu_active = (255);
8var int OniPlayer_spawn = (255);
9var int OniPlayer_spawned = (1);
10
11func void OniPlayer(void){
12 chr_draw_all_characters = 1
13 fork OniPlayer_msg_check
14 fork OniPlayer_spawn_check
15 fork OniPlayer_ingame_menu
16}
17
18func void OniPlayer_msg_check(void){
19 if(OniPlayer_disp_msg eq 1){
20 dmsg "[w. MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE]"
21 OniPlayer_disp_msg = 2
22 }
23 sleep 20
24 fork OniPlayer_msg_check
25}
26
27func void OniPlayer_ingame_menu(void){
28 if(OniPlayer_menu_active eq 1){
29 dmsg "[a1.MENU MENU MENU MENU MENU]"
30 dmsg "[b2.MENU MENU MENU MENU MENU]"
31 dmsg "[c3.MENU MENU MENU MENU MENU]"
32 dmsg "[d4.MENU MENU MENU MENU MENU]"
33 dmsg "[e5.MENU MENU MENU MENU MENU]"
34 }
35 sleep 15
36 fork OniPlayer_ingame_menu
37}
Note: See TracBrowser for help on using the repository browser.