Background: Since The creation of PyAI with string support, the debug opcode can now be used in AI scripts. This script is a separate AI script ID that is imported into an aiscript.bin, randomly choosing the AI to display chat messages.
Usage: At the beginning of your AI script, put "multirun(CHAT:Chat Loops)" to initialize the chat engine. When you import the scripts, make sure you import the chat script and your AI at the same time with the list feature.
Here is the code:
Code
# Chat Library v1.0 by modmaster50
CHAT(0, 010, aiscript):
goto(Chat Loops)
# Random Taunt Chat
--Chat Loops--
random_jump(2,Tlk01)
random_jump(2,Tlk02)
random_jump(2,Tlk03)
random_jump(2,Tlk04)
random_jump(2,Tlk05)
random_jump(2,Tlk06)
random_jump(2,Tlk07)
random_jump(2,Tlk08)
random_jump(2,Tlk09)
random_jump(2,Tlk10)
random_jump(2,Tlk11)
random_jump(2,Tlk12)
random_jump(2,Tlk13)
random_jump(2,Tlk14)
random_jump(2,Tlk15)
random_jump(2,Tlk16)
random_jump(2,Tlk17)
random_jump(2,Tlk18)
random_jump(2,Tlk19)
random_jump(2,Tlk20)
random_jump(2,Tlk21)
random_jump(2,Tlk22)
random_jump(2,Tlk23)
random_jump(2,Tlk24)
random_jump(2,Tlk25)
random_jump(2,Tlk26)
random_jump(2,Tlk27)
random_jump(2,Tlk28)
random_jump(2,Tlk29)
random_jump(2,Tlk30)
random_jump(2,Tlk31)
random_jump(2,Tlk32)
random_jump(2,Tlk33)
random_jump(2,Tlk34)
random_jump(2,Tlk35)
random_jump(2,Tlk36)
random_jump(2,Tlk37)
random_jump(2,Tlk38)
random_jump(2,Tlk39)
random_jump(2,Tlk40)
random_jump(2,Tlk41)
random_jump(2,Tlk42)
panic(AI Panic)
time_jump(45,AI Bored)
wait(200)
goto(Chat Loops)
--Tlk01--
debug(Random Wait,You're going to lose this game :D)
--Tlk02--
debug(Random Wait,Oh crap! I hate this map!)
--Tlk03--
debug(Random Wait,GTFO<44> man!)
--Tlk04--
debug(Random Wait,Just shut up and play the game.)
--Tlk05--
debug(Random Wait,*sigh* People on battle.net these days...)
--Tlk06--
debug(Random Wait,Hmmm...Maybe I'll attack you.)
--Tlk07--
debug(Random Wait,Seriously how many of you have played SC before? :P)
--Tlk08--
debug(Random Wait,I know everything there is to know about strategy!)
--Tlk09--
debug(Random Wait,Its ownage time!)
--Tlk10--
debug(Random Wait,Let's see you survive this attack!)
--Tlk11--
debug(Random Wait,Hehehe...)
--Tlk12--
debug(Random Wait,Who wants to die first?)
--Tlk13--
debug(Random Wait,I'm going to win within five minutes.)
--Tlk14--
debug(Random Wait,This is going to be an interesting game...)
--Tlk15--
debug(Random Wait,Am I being annoying?)
--Tlk16--
debug(Random Wait,Lol I play SC way too much.)
--Tlk17--
debug(Tlk17b,I'm way samrter than you!)
--Tlk17b--
wait(35)
debug(Random Wait,*smarter)
--Tlk18--
debug(Random Wait,Shh...<40>I'm plotting against you<41>)
--Tlk19--
debug(Random Wait,Your weak strategies won't work on me!)
--Tlk20--
debug(Random Wait,I'm going to play WC3 after I finish you.)
--Tlk21--
debug(Random Wait,Omg I hate hackers!)
--Tlk22--
debug(Random Wait,Geez<44> this map is really lame.)
--Tlk23--
debug(Random Wait,Why do I always get the worst race? :<40>)
--Tlk24--
debug(Random Wait,Can you take any more of my 1337 skillz?)
--Tlk25--
debug(Random Wait,Whoops...Wrong unit...)
--Tlk26--
debug(Random Wait,I dare you to attack. XD)
--Tlk27--
debug(Random Wait,I may have to leave soon. :<40>)
--Tlk28--
debug(Random Wait,I thought this was a no newb game<44> but I guess not. :<41>)
--Tlk29--
debug(Random Wait,Worst game ever!)
--Tlk30--
debug(Random Wait,No<44> no<44> no<44> no<44> NO!!! Not enough gas!!!)
--Tlk31--
debug(Random Wait,NO U!)
--Tlk32--
debug(Random Wait,Hey did you see what you just did? Epic fail!)
--Tlk33--
debug(Random Wait,Awww<44> I have to expand again! xC)
--Tlk34--
debug(Random Wait,I'm the <35>1 Starcraft player on Battle.net! Well<44> my own
Battle.net.)
--Tlk35--
debug(Random Wait,This is lame<44> I want a RM!)
--Tlk36--
debug(Random Wait,Somebody call for an exterminator? XD)
--Tlk37--
debug(Random Wait,You want a piece of me? Come and get it!)
--Tlk38--
debug(Random Wait,This map is so simple<44> go download some better ones.)
--Tlk39--
debug(Random Wait,Wait until you see me unveil my EVIL plan! Muahaha!)
--Tlk40--
debug(Random Wait,...Well? Anyone going to make a move?)
--Tlk41--
debug(Random Wait,Who's going to host the next game?)
--Tlk42--
debug(Random Wait,The onslaught has begun! :D)
# Bored Computer Player
--AI Bored--
random_jump(5,Bored01)
random_jump(5,Bored02)
random_jump(5,Bored03)
random_jump(5,Bored04)
random_jump(5,Bored05)
random_jump(5,Bored06)
random_jump(5,Bored07)
random_jump(5,Bored08)
goto(Chat Loops)
--Bored01--
debug(Random Wait,Cmon<44> this game is taking foreverrrrrr!)
--Bored02--
debug(Random Wait,Jesus! Can this game go any slower?)
--Bored03--
debug(Random Wait,I'm starting to get bored now...)
--Bored04--
debug(Random Wait,Hurry this up<44> I'm not wasting any more of my time here.)
--Bored05--
debug(Random Wait,............)
--Bored06--
debug(Random Wait,If this doesn't finish soon<44> I want to leave)
--Bored07--
debug(Random Wait,Longest game ever...)
--Bored08--
debug(Random Wait,End this please!)
# Panic Computer Player
--AI Panic--
random_jump(12,Panic01)
random_jump(12,Panic02)
random_jump(12,Panic03)
random_jump(12,Panic04)
random_jump(12,Panic05)
random_jump(12,Panic06)
random_jump(12,Panic07)
random_jump(12,Panic08)
random_jump(12,Panic09)
random_jump(12,Panic10)
goto(Chat Loops)
--Panic01--
debug(Random Wait,Ahhhhhh! My precious base is under attack!)
--Panic02--
debug(Random Wait,Come on! What did I ever do to you?)
--Panic03--
debug(Random Wait,Hey! Go pick on someone your own size!)
--Panic04--
debug(Random Wait,Please<44> stop attacking me! :<40>)
--Panic05--
debug(Random Wait,This may just be GG for me...)
--Panic06--
debug(Random Wait,Ouch<44> my base is being destroyed!)
--Panic07--
debug(Random Wait,Dang can't you let me win once?)
--Panic08--
debug(Random Wait,I'm really getting owned now...)
--Panic09--
debug(Random Wait,Hmph! You'd better prepare for my counter-attack!)
--Panic10--
debug(Random Wait,Awww! You just screwed up my plan... :<40>)
# Wait Randomization
--Random Wait--
random_jump(8,Wait01)
random_jump(8,Wait02)
random_jump(8,Wait03)
random_jump(8,Wait04)
random_jump(8,Wait05)
random_jump(8,Wait06)
random_jump(8,Wait07)
random_jump(8,Wait08)
random_jump(8,Wait09)
random_jump(8,Wait10)
wait(100)
goto(Random Wait)
# Wait Scripts
--Wait01--
wait(360)
goto(Chat Loops)
--Wait02--
wait(500)
goto(Chat Loops)
--Wait03--
wait(600)
goto(Chat Loops)
--Wait04--
wait(250)
goto(Chat Loops)
--Wait05--
wait(280)
goto(Chat Loops)
--Wait06--
wait(300)
goto(Chat Loops)
--Wait07--
wait(1000)
goto(Chat Loops)
--Wait08--
wait(800)
goto(Chat Loops)
--Wait09--
wait(425)
goto(Chat Loops)
--Wait10--
wait(910)
goto(Chat Loops)
# How to use:
# Insert this line at the beginning of the AI script of choice:
# multirun(CHAT:Chat Loops)
# to start the script directly! :)
# Make sure you compile using PyAI and import this in a list with your other scripts.
CHAT(0, 010, aiscript):
goto(Chat Loops)
# Random Taunt Chat
--Chat Loops--
random_jump(2,Tlk01)
random_jump(2,Tlk02)
random_jump(2,Tlk03)
random_jump(2,Tlk04)
random_jump(2,Tlk05)
random_jump(2,Tlk06)
random_jump(2,Tlk07)
random_jump(2,Tlk08)
random_jump(2,Tlk09)
random_jump(2,Tlk10)
random_jump(2,Tlk11)
random_jump(2,Tlk12)
random_jump(2,Tlk13)
random_jump(2,Tlk14)
random_jump(2,Tlk15)
random_jump(2,Tlk16)
random_jump(2,Tlk17)
random_jump(2,Tlk18)
random_jump(2,Tlk19)
random_jump(2,Tlk20)
random_jump(2,Tlk21)
random_jump(2,Tlk22)
random_jump(2,Tlk23)
random_jump(2,Tlk24)
random_jump(2,Tlk25)
random_jump(2,Tlk26)
random_jump(2,Tlk27)
random_jump(2,Tlk28)
random_jump(2,Tlk29)
random_jump(2,Tlk30)
random_jump(2,Tlk31)
random_jump(2,Tlk32)
random_jump(2,Tlk33)
random_jump(2,Tlk34)
random_jump(2,Tlk35)
random_jump(2,Tlk36)
random_jump(2,Tlk37)
random_jump(2,Tlk38)
random_jump(2,Tlk39)
random_jump(2,Tlk40)
random_jump(2,Tlk41)
random_jump(2,Tlk42)
panic(AI Panic)
time_jump(45,AI Bored)
wait(200)
goto(Chat Loops)
--Tlk01--
debug(Random Wait,You're going to lose this game :D)
--Tlk02--
debug(Random Wait,Oh crap! I hate this map!)
--Tlk03--
debug(Random Wait,GTFO<44> man!)
--Tlk04--
debug(Random Wait,Just shut up and play the game.)
--Tlk05--
debug(Random Wait,*sigh* People on battle.net these days...)
--Tlk06--
debug(Random Wait,Hmmm...Maybe I'll attack you.)
--Tlk07--
debug(Random Wait,Seriously how many of you have played SC before? :P)
--Tlk08--
debug(Random Wait,I know everything there is to know about strategy!)
--Tlk09--
debug(Random Wait,Its ownage time!)
--Tlk10--
debug(Random Wait,Let's see you survive this attack!)
--Tlk11--
debug(Random Wait,Hehehe...)
--Tlk12--
debug(Random Wait,Who wants to die first?)
--Tlk13--
debug(Random Wait,I'm going to win within five minutes.)
--Tlk14--
debug(Random Wait,This is going to be an interesting game...)
--Tlk15--
debug(Random Wait,Am I being annoying?)
--Tlk16--
debug(Random Wait,Lol I play SC way too much.)
--Tlk17--
debug(Tlk17b,I'm way samrter than you!)
--Tlk17b--
wait(35)
debug(Random Wait,*smarter)
--Tlk18--
debug(Random Wait,Shh...<40>I'm plotting against you<41>)
--Tlk19--
debug(Random Wait,Your weak strategies won't work on me!)
--Tlk20--
debug(Random Wait,I'm going to play WC3 after I finish you.)
--Tlk21--
debug(Random Wait,Omg I hate hackers!)
--Tlk22--
debug(Random Wait,Geez<44> this map is really lame.)
--Tlk23--
debug(Random Wait,Why do I always get the worst race? :<40>)
--Tlk24--
debug(Random Wait,Can you take any more of my 1337 skillz?)
--Tlk25--
debug(Random Wait,Whoops...Wrong unit...)
--Tlk26--
debug(Random Wait,I dare you to attack. XD)
--Tlk27--
debug(Random Wait,I may have to leave soon. :<40>)
--Tlk28--
debug(Random Wait,I thought this was a no newb game<44> but I guess not. :<41>)
--Tlk29--
debug(Random Wait,Worst game ever!)
--Tlk30--
debug(Random Wait,No<44> no<44> no<44> no<44> NO!!! Not enough gas!!!)
--Tlk31--
debug(Random Wait,NO U!)
--Tlk32--
debug(Random Wait,Hey did you see what you just did? Epic fail!)
--Tlk33--
debug(Random Wait,Awww<44> I have to expand again! xC)
--Tlk34--
debug(Random Wait,I'm the <35>1 Starcraft player on Battle.net! Well<44> my own
Battle.net.)
--Tlk35--
debug(Random Wait,This is lame<44> I want a RM!)
--Tlk36--
debug(Random Wait,Somebody call for an exterminator? XD)
--Tlk37--
debug(Random Wait,You want a piece of me? Come and get it!)
--Tlk38--
debug(Random Wait,This map is so simple<44> go download some better ones.)
--Tlk39--
debug(Random Wait,Wait until you see me unveil my EVIL plan! Muahaha!)
--Tlk40--
debug(Random Wait,...Well? Anyone going to make a move?)
--Tlk41--
debug(Random Wait,Who's going to host the next game?)
--Tlk42--
debug(Random Wait,The onslaught has begun! :D)
# Bored Computer Player
--AI Bored--
random_jump(5,Bored01)
random_jump(5,Bored02)
random_jump(5,Bored03)
random_jump(5,Bored04)
random_jump(5,Bored05)
random_jump(5,Bored06)
random_jump(5,Bored07)
random_jump(5,Bored08)
goto(Chat Loops)
--Bored01--
debug(Random Wait,Cmon<44> this game is taking foreverrrrrr!)
--Bored02--
debug(Random Wait,Jesus! Can this game go any slower?)
--Bored03--
debug(Random Wait,I'm starting to get bored now...)
--Bored04--
debug(Random Wait,Hurry this up<44> I'm not wasting any more of my time here.)
--Bored05--
debug(Random Wait,............)
--Bored06--
debug(Random Wait,If this doesn't finish soon<44> I want to leave)
--Bored07--
debug(Random Wait,Longest game ever...)
--Bored08--
debug(Random Wait,End this please!)
# Panic Computer Player
--AI Panic--
random_jump(12,Panic01)
random_jump(12,Panic02)
random_jump(12,Panic03)
random_jump(12,Panic04)
random_jump(12,Panic05)
random_jump(12,Panic06)
random_jump(12,Panic07)
random_jump(12,Panic08)
random_jump(12,Panic09)
random_jump(12,Panic10)
goto(Chat Loops)
--Panic01--
debug(Random Wait,Ahhhhhh! My precious base is under attack!)
--Panic02--
debug(Random Wait,Come on! What did I ever do to you?)
--Panic03--
debug(Random Wait,Hey! Go pick on someone your own size!)
--Panic04--
debug(Random Wait,Please<44> stop attacking me! :<40>)
--Panic05--
debug(Random Wait,This may just be GG for me...)
--Panic06--
debug(Random Wait,Ouch<44> my base is being destroyed!)
--Panic07--
debug(Random Wait,Dang can't you let me win once?)
--Panic08--
debug(Random Wait,I'm really getting owned now...)
--Panic09--
debug(Random Wait,Hmph! You'd better prepare for my counter-attack!)
--Panic10--
debug(Random Wait,Awww! You just screwed up my plan... :<40>)
# Wait Randomization
--Random Wait--
random_jump(8,Wait01)
random_jump(8,Wait02)
random_jump(8,Wait03)
random_jump(8,Wait04)
random_jump(8,Wait05)
random_jump(8,Wait06)
random_jump(8,Wait07)
random_jump(8,Wait08)
random_jump(8,Wait09)
random_jump(8,Wait10)
wait(100)
goto(Random Wait)
# Wait Scripts
--Wait01--
wait(360)
goto(Chat Loops)
--Wait02--
wait(500)
goto(Chat Loops)
--Wait03--
wait(600)
goto(Chat Loops)
--Wait04--
wait(250)
goto(Chat Loops)
--Wait05--
wait(280)
goto(Chat Loops)
--Wait06--
wait(300)
goto(Chat Loops)
--Wait07--
wait(1000)
goto(Chat Loops)
--Wait08--
wait(800)
goto(Chat Loops)
--Wait09--
wait(425)
goto(Chat Loops)
--Wait10--
wait(910)
goto(Chat Loops)
# How to use:
# Insert this line at the beginning of the AI script of choice:
# multirun(CHAT:Chat Loops)
# to start the script directly! :)
# Make sure you compile using PyAI and import this in a list with your other scripts.
I'm happy to recieve comments and suggestions. Also, plz forward this to broodwarai.com. I'm sure it could be used there.
None.