I am trying to make dynamic/random conversations when you talk to a character (just destroying a static prop). The functon I needed itself worked great. i had no troubles
after a few tries.... But how do I make random conversations after I certain object has been destroyed?
Here's an example code I use to show up a conversation:
Code: Select all
ShowObjectiveTextPopup("level.sod.characters.friends.best.1a", ATT)
The other three:
ShowObjectiveTextPopup("level.sod.characters.friends.best.1b", ATT)
ShowObjectiveTextPopup("level.sod.characters.friends.best.1c", ATT)
ShowObjectiveTextPopup("level.sod.characters.friends.best.1d", ATT)
After killing one prop, a text should appear. This worked so far. But I want to make the game to choose between four different Popup Screens. I consider using math.random or any timers. But I have no idea how to make a fuction read another function.
Here's that bit of my lua with that conversation function:
Oh an by the way. I am using talk boxes as "destructablebuildings". I would like to use the collisions of animated props but I didn't find the right ClassLabel for destructable animated props. I tried
AnimatedBuilding,
ArmedAnimatedBuilding and various other ones. I also don't want to use standing Bots instead of animated props since I need all 8 avaiable teams.
I also wonder how many animated props can be placed on one single map just btw?