Forum Jump :

Author Message

Pirin  



Posts: 1547
Rank:


Level: Member

Country: us
Location: Atlanta, GA
Occupation: IT
Age: 45
In-game name: kylania

 
#129254 Posted at 2012-09-12 05:05        
     
My Market Day demo mission has an example similar to your second request. A random percentage that some civie will end up being a bomber, or maybe not. The sound playing is not properly multiplayer yet, I keep meaning to fix that, but the rest of it works. You could probably adapt that to your liking.

For the first thing I think this would work for a 50% change of a trigger going off:

this && ceil random 2 > 1

At least in a quick test a hint was going off some of the time with that. :) It was a real fast repeat though, so if you want this looping somehow you might wanna add in a timeout timer too.