...html file based game)? I am trying to make a browser based text game and I am looking for an html script that will load files a certain percent of the time. So here is an example of what I want to do:
Your house has caught fire and the flames are spreading quickly! Do you: Escape the house, evacuate family, try to save pets, gather belongings and leave?
And so each option has a scipt, lets say if you try to save your pets there is a 75% chance you will save them, and a 25% chance you will die trying. I want a script that will roll the die (so to speak) when you click the option, and decide what file out of several to load next.
This game will operate basically the same way as Brad The Game
(some text, a few options, clicking an option loads another html file with more text and options, eventually you could load one that ends the game)
I have buttons for my options done this way, so hopefully the buttons could still have the script attached to them
<FORM METHOD="LINK" ACTION="page1.htm">
<INPUT TYPE="submit" VALUE="Sleep more">
</FORM>
Your house has caught fire and the flames are spreading quickly! Do you: Escape the house, evacuate family, try to save pets, gather belongings and leave?
And so each option has a scipt, lets say if you try to save your pets there is a 75% chance you will save them, and a 25% chance you will die trying. I want a script that will roll the die (so to speak) when you click the option, and decide what file out of several to load next.
This game will operate basically the same way as Brad The Game
(some text, a few options, clicking an option loads another html file with more text and options, eventually you could load one that ends the game)
I have buttons for my options done this way, so hopefully the buttons could still have the script attached to them
<FORM METHOD="LINK" ACTION="page1.htm">
<INPUT TYPE="submit" VALUE="Sleep more">
</FORM>