Jump to content


Photo

Things I'd like to do


18 replies to this topic

#16 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Members
  • 3811 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 11 October 2009 - 10:05 AM

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.
Yes... I am probably still editing the post above.
FAQ for the Megamods. Frequently Answered Questions.

It should be ready after dinner yes. :)

Quoted for Demivrgvs 5000th post.

#17 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 6913 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 11 October 2009 - 10:56 AM

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.
I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams

#18 Yovaneth

Yovaneth
  • Members
  • 208 posts
  • Gender:Male
  • Location:The Kingdom of Mourne

Posted 10 October 2010 - 03:11 PM

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.)
[codebox]
Response #33
Do Something1
Response #33
Do Something2
Response #34
Do Something2again
[/codebox]
Clumsy and horrid.

-Y-

Edited by Yovaneth, 10 October 2010 - 03:13 PM.


#19 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Members
  • 3811 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 10 October 2010 - 09:58 PM

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 Something1Response #10  Do Something2Response #10  Do Something2againResponse #10  Do Something3Response #10  Do Something3againResponse #10  Do Something3againagainResponse #10  Do Something3againagainandagainevenifthisisgettingtoberiddiculouslyhardtokeepuponcethefirsttenaredone...
:cringe:
Yes... I am probably still editing the post above.
FAQ for the Megamods. Frequently Answered Questions.

It should be ready after dinner yes. :)

Quoted for Demivrgvs 5000th post.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users