Closed hnejfnvjojgrogjwm closed 1 year ago
Other Adventuron users are investigating the issue in Discord. I am not sure to understand their findings, but here you have a link: https://discord.com/channels/718707322381402146/808287579321270283/1030212645514653896
Appears to be the command readahead optimizer that is going wrong.
Testing with following script
start_at = my_location
integers {
num_chances : integer "0" ;
count_yes : integer "0" ;
count_yes_2 : integer "0" ;
count_yes_3 : integer "0" ;
}
locations {
my_location : location "You are in a room." {
on_describe {
: while (num_chances != 1000) {
: if (chance (75)){
: set_integer var = "count_yes" (count_yes + 1) ;
}
: else_if (chance (50)) {
: set_integer var = "count_yes_2" (count_yes_2 + 1) ;
}
: else {
: set_integer var = "count_yes_3" (count_yes_3 + 1) ;
}
: set_integer var = "num_chances" (num_chances + 1) ;
}
: append (count_yes);
: append ", ";
: append (count_yes_2);
: append ", ";
: append (count_yes_3);
: append ", ";
: append (num_chances);
}
}
}
Fixed in beta 76
The randomly generated numbers are not working as expected.