// per-campaign-level configuration file. Used to execute scripts and other commands for campaign levels // do NOT attempt to set cvars here! Those cvars must be set from the campaign file properly // this is only for scripts and other commands you wish to run for a given level // ---------------------------------------------------------------- // Automated chat bot code: // ---------------------------------------------------------------- // this is a chat bot system, used in campaign levels to simulate dialogues between the player and bots // it only makes the player automatically speak certain messages, just like manually be typing them // 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!" // that does print "My-Playername: Bot: message", but it's the best this script can do // chat script settings set chatbot_msg_count 16 "number of messages (chatbot_msg_# cvars)" set chatbot_msg_time 17.5 "each message is posted after this many seconds" set chatbot_tmp_counter 0 "chatbot system variable, used to cycle the messages (do not set this manualy)" // chat script messages set chatbot_msg_0 "^1Space patrol 1: ^7Hey! How did you get here? Stop right there! Intruder alert!" set chatbot_msg_1 "^1Space patrol 2: ^7That's the intruder from the slime facility we were radioed about! Guard the flags! Don't let her past them!" set chatbot_msg_2 "^2Self: ^7Mmmm... those space patrols sure look tasty. Come here my little snacks... my belly hungers for you." set chatbot_msg_3 "^6Voice in your mind: ^7There's no time to waste. Bring the flags together again. This will activate the teleporter to Soylent." set chatbot_msg_4 "^6Voice in your mind: ^7Once on Soylent, you must release the furs held prisoners. Like you, they are waiting to be served as food. They will join your team and aid you in your quest of destroying the Vore Princess." set chatbot_msg_5 "^2Self: ^7Right... I could certaily use some help. I can't get to the Vore Princess all by myself, the guards are getting stronger. Just hope it's not too late for those prisoners..." set chatbot_msg_6 "^6Voice in your mind: ^7Unfortunately, some have already been fed to the owners. As sad as it is... one is being swallowed alive right now as we speak. I can however sense at least three more prisoners alive." set chatbot_msg_7 "^2Self: ^7Damn! I'm sorry I couldn't make it earlier. I will destroy these patrols and make my way there immediately." set chatbot_msg_8 "^1Space patrol 2: ^7Why the heck is this intruder talking to himself? Doesn't matter... he's our meal for tonight!" set chatbot_msg_9 "^1Space patrol 3: ^7Come here little snack! Down my hungry maw you go..." set chatbot_msg_10 "^2Self: ^7You're the one who's going to be the snack tonight! My belly gurgles for you ever since I got here." set chatbot_msg_11 "^1Space patrol 4: ^7I think the intruder is trying to take the teleporter to Soylent. Warn the guards there now! Don't ler her get there!" set chatbot_msg_12 "^2Self: ^7Guardian! What is my first objective once I reach Soylent? How do I free the prisoners?" set chatbot_msg_13 "^6Voice in your mind: ^7You will first have to overload the generator which powers the electric locks. This will also bring down the gravity simulator, so be prepared to feel lighter." set chatbot_msg_14 "^6Voice in your mind: ^7Once the generator is down, you must obtain the two keys needed to open the doors. Once you have them, release the prisoners and make your way back to slime facility together." set chatbot_msg_15 "^2Self: ^7Got it. Finishing my meal and I'm on it!" // chat script system alias chatbot_count "qc_cmd rpn /chatbot_tmp_counter chatbot_tmp_counter 1 add $chatbot_msg_count mod def" alias chatbot_say "say ${$1}" alias chatbot_do "chatbot_say chatbot_msg_$chatbot_tmp_counter;chatbot_count" alias chatbot_loop "chatbot_do;defer $chatbot_msg_time chatbot_loop" // kill the chat script when the match ends alias cl_hook_campaign_gameend "alias chatbot_loop \"\"" // start the chat script defer $chatbot_msg_time chatbot_loop // ---------------------------------------------------------------- // End of automated chat bot code. // ----------------------------------------------------------------