Random
I've been hearing a lot about people wanting to add a little random to their stories.
I really need to finish a video on that, but until I can get that done, here is a little tutorial on how to do that:
(1) Make two tags. Set one as a normal tag name it `result`, set the other as an action name it `Dice`. (You do this in the tag editor) Set the action formula to `$RAND5 + 1`.
(2) In the scene editor make a choice (leave the scene link empty so it goes nowhere) and a text block
(3) Give the choice some dramatic action text and then add a tag. The tag should use `result` and "set to the value of" and then choose `action`
(4) In the text block enter the following text `You rolled a {{result}}`
Play that and you should get a different result each time.
Here are a few screenshots:
Files
Get CYOA Factory
CYOA Factory
Create your own adventure and share them online
Status | Released |
Category | Tool |
Author | morphosisgames |
Genre | Adventure |
Tags | cyoa, Level Editor |
Languages | English |
More posts
- UpdateOct 23, 2023
- Android File System UpdateApr 03, 2023
- Capacitor UpgradeMar 08, 2023
- NaCYOAWriMoNov 02, 2022
- NaCYOAWriMoOct 20, 2022
- v1.11.3Apr 26, 2022
- v1.10.35Jan 03, 2022
- v1.10.0 "Achieving-Andromeda"Sep 06, 2021
- v1.9.27 "Mosquito Tornado"Jul 21, 2021
Comments
Log in with itch.io to leave a comment.
Best thing to do is chat with us in real time. We are on discord: https://discord.gg/d8zAHkR
You can talk to the devs and meet the awesome community
I'm confused as to how to stop the $RAND from rolling on every scene element change. I want the game to pick the RNG value and set it in stone but no matter what I do, it keeps rolling random numbers. Even adding the value of Result to a different tag and then erasing Result won't help. Plus, <+> behaves the exact same way as : with Roll/Result, and <-> just makes it a negative (i. e. if the first Roll is 2 and the next one is 4, Result will first be set to 4 (-4) and not 6 (-6), as addition/subtraction is supposed to work). Why does that happen and how do I fix it?
I think it would be amazing if you could add a way to use conditional tags as "X or Y" instead of just "X and Y", or maybe some kind of an "else" sort of thing, like in the timers. Making an input-based scene is a headache right now.