Non-threaded

Forums » Feature Wishing Well » Read Thread

Suggestions for improvements and additions to the site.
This feature was rejected 8/19/2019: Can be done with IF/ELSE -- too much work for now.

choose (thing 1, thing 2, thing 3)

6 years ago

"HP := choose (60, 100, 124)" and it'll randomly choose one thing from the list you've provided, separated by the coma. In particular, I was thinking about how to apply this to say, a random inventory drop or addition for a more rpg like game. Also works with variables themselves, not just values.
"choose (HP := HP + 20, STR := STR + 2, SPD := SPD + 4)"
"$DEST := choose (@pg12, @pg14, @pg43) "

Another more complex example, using a list of 4: 
choose (IF HP < 5 THEN HP := HP + 10 IF HP > 4 THEN HP := HP + 3, IF STR < 5 THEN STR := STR + 5 IF STR > 4 THEN STR := STR + 2, SPD := SPD + 4, MAXMANA := MAXMANA + STR)

I'm still a bit sketchy as to how it works - work in progress idea. But I think it would make radom events a lot easier to do and a lot more specific. 

choose (thing 1, thing 2, thing 3)

6 years ago
Okay sure, Alex will get right on this.

choose (thing 1, thing 2, thing 3)

6 years ago

Just like throwing pennies in a real wishing well actually grants you wishes, I know. 

But this is called the wishing well for a reason. So let me throw in my penny, and have my wish that'll prolly never get granted.