Jarno Mikkola Posted October 11, 2009 Share Posted October 11, 2009 Zrayen (misspelled, sorry) Zyraen perhaps. Link to near him these days. IF <<trigger>> THEN ... END I can't remember if that is enough "ends", but the idea is there - the user only sees one of these groups. Mike1072 can probably do something way cool like igi does with arrays, so this can be even wider ranging... Yes, it is. and the only thing left to reserach is the block weighting. I think there were some old posts about whether or not the weighting mattered (#50, #20, etc.) and if the engine actually created the correct ratios, so that 5 equal weights = 20% chance for each, or higher percentage for the first few, or something like that. The first is more probable in x=y=z case, according to Miloch SimDing0. Quote Link to comment
cmorgan Posted October 11, 2009 Share Posted October 11, 2009 Challenge being this: 3) Multiple responses:You are not limited to simply using a single RESPONSE #100 in scripts. You can have numerous responses. The actual response #s only matter relative to each other (they do not need to total 100), as they act as a weighting. So, you could have, for example: IF // Triggers THEN RESPONSE #100 // Action 1 RESPONSE #100 // Action 2 END This will theoretically execute either action 1 or action 2 with equal chance of each when the block is executed. However, in practice, there is a bias towards the first response (see [this] post). Truly random responses, if essential, can be achieved using the RandomNum trigger. where [this] is a missing link to the lost TeamBG original thread. I do remember this coming up a couple of times over the years. Quote Link to comment
Yovaneth Posted October 10, 2010 Share Posted October 10, 2010 (edited) It's a 2:1 bias . Apart from using RandomNum() the only way to get a fully random script block this way is to (e.g.) Response #33 Do Something1 Response #33 Do Something2 Response #34 Do Something2again Clumsy and horrid. -Y- Edited October 10, 2010 by Yovaneth Quote Link to comment
Jarno Mikkola Posted October 11, 2010 Share Posted October 11, 2010 It's a 2:1 bias . Apart from using RandomNum() the only way to get a fully random script block this way is to (e.g.)...Clumsy and horrid. Does that carry over ? Say: Response #10 Do Something1 Response #10 Do Something2 Response #10 Do Something2again Response #10 Do Something3 Response #10 Do Something3again Response #10 Do Something3againagain Response #10 Do Something3againagainandagainevenifthisisgettingtoberiddiculouslyhardtokeepuponcethefirsttenaredone ... Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.