]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
At last, the chat scripts for the campaign. They echo chat messages from the server...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 13 Sep 2010 16:17:28 +0000 (19:17 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 13 Sep 2010 16:17:28 +0000 (19:17 +0300)
data/maps/campaign_voretournament.txt
data/maps/campaign_voretournament_1.cfg [new file with mode: 0644]
data/maps/campaign_voretournament_2.cfg [new file with mode: 0644]

index 231bb4242ff185e69f598dffa851205887039c00..ba3244eef3c8d61f34a9dd22106115950d68cd93 100644 (file)
@@ -2,4 +2,4 @@
 "//game","mapname","bots","skill","frag","mutator-sets","description","long description"
 
 "dm","basement","1","1","5","bot_config_file maps/campaign_voretournament_bots_1.txt; bot_vs_human 0; g_vore 0; g_start_weapon_grabber 0","The escape","As you're slowly waking up, you see yourself in a small cell located inside a basement. A guard is patrolling the area. Suddenly, your cell door gets unlocked without the guard's knowledge.\n\nFind a Grabber and use its electric attack to take the guard down. Then advance to the upper level of the facility, and try to recover your memory."
-"ctf","basementctf","2","2","5","bot_config_file maps/campaign_voretournament_bots_1.txt; bot_vs_human 1; g_vore 0; g_start_weapon_grabber 0","Unlocking the power of vore","As the guard drops dead and you prepare to advance, you hear a mysterious voice in your mind: 'You are the only one who can stop the Vore Princess, by obtaining the power of vore. Please, help us!'\n\nYou reach the second floor, where you come across two mysterious flags. 'Bring them together', the voice speaks again as two guards arrive."
\ No newline at end of file
+"ctf","basementctf","2","2","5","bot_config_file maps/campaign_voretournament_bots_1.txt; bot_vs_human 2; g_vore 0; g_start_weapon_grabber 0","Unlocking the power of vore","As the guard drops dead and you prepare to advance, you hear a mysterious voice in your mind: 'You are the only one who can stop the Vore Princess, by obtaining the power of vore. Please, help us!'\n\nYou reach the second floor, where you come across two mysterious flags. 'Bring them together', the voice speaks again as two guards arrive."
\ No newline at end of file
diff --git a/data/maps/campaign_voretournament_1.cfg b/data/maps/campaign_voretournament_1.cfg
new file mode 100644 (file)
index 0000000..b19ab29
--- /dev/null
@@ -0,0 +1,38 @@
+// per-campaign-level configuration file. Used to execute scripts and other commands for campaign levels\r
+// do NOT attempt to set cvars here! Those cvars must be set from the campaign file properly\r
+// this is only for scripts and other commands you wish to run for a given level\r
+\r
+// ----------------------------------------------------------------\r
+// Automated chat bot code:\r
+// ----------------------------------------------------------------\r
+\r
+// this is a chat bot system, used in campaign levels to simulate dialogues between the player and bots\r
+// it only makes the player automatically speak certain messages, just like manually be typing them\r
+// eg. In a campaign level where you try to advance to the next area, you can make the script say "Bot: I will not let you pass!"\r
+// that does print "My-Playername: Bot: message", but it's the best this script can do\r
+\r
+// chat script settings\r
+set chatbot_msg_count 3 "number of messages (chatbot_msg_# cvars)"\r
+set chatbot_msg_time 8 "each message is posted after this many seconds"\r
+set chatbot_tmp_counter 0 "chatbot system variable, used to cycle the messages (do not set this manualy)"\r
+\r
+// chat script messages\r
+set chatbot_msg_0 "First message from the list"\r
+set chatbot_msg_1 "A second message message from the list"\r
+set chatbot_msg_2 "A third message message from the list"\r
+\r
+// chat script system\r
+alias chatbot_count "qc_cmd rpn /chatbot_tmp_counter chatbot_tmp_counter 1 add $chatbot_msg_count mod def"\r
+alias chatbot_say "say ${$1}"\r
+alias chatbot_do "chatbot_say chatbot_msg_$chatbot_tmp_counter;chatbot_count"\r
+alias chatbot_loop "chatbot_do;defer $chatbot_msg_time chatbot_loop"\r
+\r
+// kill the chat script when the match ends\r
+alias cl_hook_campaign_gameend "alias chatbot_loop \"\""\r
+\r
+// start the chat script\r
+defer $chatbot_msg_time chatbot_loop\r
+\r
+// ----------------------------------------------------------------\r
+// End of automated chat bot code.\r
+// ----------------------------------------------------------------
\ No newline at end of file
diff --git a/data/maps/campaign_voretournament_2.cfg b/data/maps/campaign_voretournament_2.cfg
new file mode 100644 (file)
index 0000000..b19ab29
--- /dev/null
@@ -0,0 +1,38 @@
+// per-campaign-level configuration file. Used to execute scripts and other commands for campaign levels\r
+// do NOT attempt to set cvars here! Those cvars must be set from the campaign file properly\r
+// this is only for scripts and other commands you wish to run for a given level\r
+\r
+// ----------------------------------------------------------------\r
+// Automated chat bot code:\r
+// ----------------------------------------------------------------\r
+\r
+// this is a chat bot system, used in campaign levels to simulate dialogues between the player and bots\r
+// it only makes the player automatically speak certain messages, just like manually be typing them\r
+// eg. In a campaign level where you try to advance to the next area, you can make the script say "Bot: I will not let you pass!"\r
+// that does print "My-Playername: Bot: message", but it's the best this script can do\r
+\r
+// chat script settings\r
+set chatbot_msg_count 3 "number of messages (chatbot_msg_# cvars)"\r
+set chatbot_msg_time 8 "each message is posted after this many seconds"\r
+set chatbot_tmp_counter 0 "chatbot system variable, used to cycle the messages (do not set this manualy)"\r
+\r
+// chat script messages\r
+set chatbot_msg_0 "First message from the list"\r
+set chatbot_msg_1 "A second message message from the list"\r
+set chatbot_msg_2 "A third message message from the list"\r
+\r
+// chat script system\r
+alias chatbot_count "qc_cmd rpn /chatbot_tmp_counter chatbot_tmp_counter 1 add $chatbot_msg_count mod def"\r
+alias chatbot_say "say ${$1}"\r
+alias chatbot_do "chatbot_say chatbot_msg_$chatbot_tmp_counter;chatbot_count"\r
+alias chatbot_loop "chatbot_do;defer $chatbot_msg_time chatbot_loop"\r
+\r
+// kill the chat script when the match ends\r
+alias cl_hook_campaign_gameend "alias chatbot_loop \"\""\r
+\r
+// start the chat script\r
+defer $chatbot_msg_time chatbot_loop\r
+\r
+// ----------------------------------------------------------------\r
+// End of automated chat bot code.\r
+// ----------------------------------------------------------------
\ No newline at end of file