Home   Help Search Login Register  

Author Topic: Randomness script  (Read 584 times)

0 Members and 1 Guest are viewing this topic.

ARVN Marvin

  • Guest
Randomness script
« on: 02 May 2003, 19:13:03 »
Greetings all! :D

Haven't been able to find anything like this in tutes, scripts, or FAQs. Maybe I'm looking for the wrong thing?

Could anyone shed some light on the possibilities for a script that forces randomness ingame?
To be specific, say you have a really fun mission that's sort of simple and small (MP to be exact) and the one thing you think it's missing is randomness, meaning you'd love to play the mission over and over with different things happening each time (or not different, it's random after all :D )?
Maybe this has been covered before? Is it too difficult?
Right now, what I do is make several waypoints for units/vehicles that wouldn't happen unless certain conditions are true, and then I make waypoints that will happen no matter what.
Somewhere on the map, preferably far far away from the action, I place a few triggers and a few civilians. I mess with the prob of presence so there's say a 33% chance one of two civilians will appear withing the trigger and if A appears, this is true, if B appears that is true, if A and B appear something else is true, if neither appear, so on and so forth.
Now I can have the trigger make conditions true that will affect the waypoints and I've sort of created a way that a misison can unfold differently each time you play it (obviously, not to different with only three or so different conditions) but you catch my drift?

My question is: Can this be done through scripting, and if so can it be done through scripting I can understand!?? :D
Anyone have any thoughts/comments/suggestions?

*****************************************************************
Marv'

? !(Marvin canwork) : goto "OFPEC.com"  :D
« Last Edit: 02 May 2003, 19:13:59 by ARVN Marvin »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Randomness script
« Reply #1 on: 02 May 2003, 20:56:08 »
use da random command ;D

gives u random num between 0 nd da number u choose

(random 10) results in ny num between 0 n 10

;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

jingleleg

  • Guest
Re:Randomness script
« Reply #2 on: 02 May 2003, 23:17:07 »
Jeez! there's a random command?? Don't feel bad Marv, I missed it as well!!

Gods, I hate being a newbie!!

ARVN Marvin

  • Guest
Re:Randomness script
« Reply #3 on: 02 May 2003, 23:23:34 »
Hey LCD, much thanks!! ;)  ;)

Jingleleg - I hear ya man!!

 :-\ (Marv hangs head in shame)