Hello.
I am back again on this. Last time I thought I was able to get it to work. Turns out I was wrong. I was scrubbing through my game for final edits before releasing the full chapter one demo when I came across the repeating rolls again. No matter what I do it doesn’t work.
Unless I make it ugly. I have to put in a sentence or two in between the roll and the scene it needs to go to, which looks utterly stupid. I hate it, it’s awkward and is just jarring. But no matter what I try that is the ONLY thing that works. It makes me want to jump out of a plane.
What am I doing wrong?
Here is EVERY iteration of code I have used that has NOT worked followed by the single one that has. Straight from my story this time too. I apolgize in advance as some of this is VERY lengthy, but I don’t know what else to do other than paste it all in case something is wrong.
Fail 1:
Summary
#Investigate the sound. Someone could be trapped.
You dash across the room,
*if (rrace = "human")
vaulting over the flame licked surface of the bar
*if (rrace = "elf")
vaulting over the flame licked surface of the bar
*if (rrace = "orc")
vaulting over the flame licked surface of the bar
*if (rrace = "halfling")
skidding around the corner of the crumbling bar
*if (rrace = "dwarf")
skidding around the corner of the crumbling bar
and sprint to the kitchen (stuff about the maid you found.) The roof makes a loud creaking noise as you examine her. If you wish to help, you must do so before the roof caves in.
*fake_choice
#Attempt to remove the beam.
*set DCrange "5"
*rand d20 1 20
*set strengthmodifier (strength/10)
*set rollresult (d20 + strengthmodifier)
*set rollsuccess false
*set rollfail false
*page_break
*if (rollresult >= DCrange)
*set rollsuccess true
*page_break
*if (rollsuccess = true)
It doesn't take much effort to lift the beam from its position and toss aside with a dull thud. You grab the woman gently, hoisting her into your arms. You turn and swiftly make your exit.
*goto savemaid
*if (rollresult < DCrange)
*set rollfail true
*page_break
*if (rollsuccess = false)
You try to lift the beam, but it refuses to budge. The woman is unconcious now, so she is atleast spared the pain of your fumbling attempts. But try as you might, the scorched wood is simply too heavy. The ceiling groans ominously above you. Time is running out.
*fake_choice
*selectable_if ( Magic >= 25) #Levitate the beam.
You.........
*goto savemaid
#Leave
There is nothing more you can do for her. You leave the woman behind, returning to the commonroom.
*goto cont.1
Fail 2:
Summary
#Investigate the sound. Someone could be trapped.
You dash across the room,
*if (rrace = "human")
vaulting over the flame licked surface of the bar
*if (rrace = "elf")
vaulting over the flame licked surface of the bar
*if (rrace = "orc")
vaulting over the flame licked surface of the bar
*if (rrace = "halfling")
skidding around the corner of the crumbling bar
*if (rrace = "dwarf")
skidding around the corner of the crumbling bar
and sprint to the kitchen (stuff about the maid you found.) The roof makes a loud creaking noise as you examine her. If you wish to help, you must do so before the roof caves in.
*fake_choice
#Attempt to remove the beam.
*set DCrange "5"
*gosub_scene MISC strengthcheck
*page_break
You lift the beam with all your might.
*if (rollsuccess = true)
It doesn't take much effort to lift the beam from its position and toss aside with a dull thud. You grab the woman gently, hoisting her into your arms. You turn and swiftly make your exit.
*goto savemaid
*if (rollsuccess = false)
You try to lift the beam, but it refuses to budge. The woman is unconcious now, so she is atleast spared the pain of your fumbling attempts. But try as you might, the scorched wood is simply too heavy. The ceiling groans ominously above you. Time is running out.
*fake_choice
*selectable_if ( Magic >= 25) #Levitate the beam.
You.........
*goto savemaid
#Leave
There is nothing more you can do for her. You leave the woman behind, returning to the commonroom.
*goto cont.1
Fail 3- Infinity is adding *page_break between every single line with increasing frequency, at some point I even ended up with this and it did not work.
Summary
#Investigate the sound. Someone could be trapped.
You dash across the room,
*if (rrace = "human")
vaulting over the flame licked surface of the bar
*if (rrace = "elf")
vaulting over the flame licked surface of the bar
*if (rrace = "orc")
vaulting over the flame licked surface of the bar
*if (rrace = "halfling")
skidding around the corner of the crumbling bar
*if (rrace = "dwarf")
skidding around the corner of the crumbling bar
and sprint to the kitchen (stuff about the maid you found.) The roof makes a loud creaking noise as you examine her. If you wish to help, you must do so before the roof caves in.
*fake_choice
#Attempt to remove the beam.
*page_break
*set DCrange "5"
*page_break
*gosub_scene MISC strengthcheck
*page_break
*if (rollsuccess = true)
*page_break
It doesn't take much effort to lift the beam from its position and toss aside with a dull thud. You grab the woman gently, hoisting her into your arms. You turn and swiftly make your exit.
*goto savemaid
*if (rollsuccess = false)
*page_break
You try to lift the beam, but it refuses to budge. The woman is unconcious now, so she is atleast spared the pain of your fumbling attempts. But try as you might, the scorched wood is simply too heavy. The ceiling groans ominously above you. Time is running out.
*fake_choice
*selectable_if ( Magic >= 25) #Levitate the beam.
You.........
*goto savemaid
#Leave
There is nothing more you can do for her. You leave the woman behind, returning to the commonroom.
*goto cont.1
What works do you ask? This awkward thing.
Summary
#Investigate the sound. Someone could be trapped.
You dash across the room,
*if (rrace = "human")
vaulting over the flame licked surface of the bar
*if (rrace = "elf")
vaulting over the flame licked surface of the bar
*if (rrace = "orc")
vaulting over the flame licked surface of the bar
*if (rrace = "halfling")
skidding around the corner of the crumbling bar
*if (rrace = "dwarf")
skidding around the corner of the crumbling bar
and sprint to the kitchen (stuff about the maid you found.) The roof makes a loud creaking noise as you examine her. If you wish to help, you must do so before the roof caves in.
*fake_choice
#Attempt to remove the beam.
*set DCrange "5"
*gosub_scene MISC strengthcheck
*page_break
You have the beam with all your might.
*page_break
*if (rollsuccess = true)
It doesn't take much effort to lift the beam from its position and toss aside with a dull thud. You grab the woman gently, hoisting her into your arms. You turn and swiftly make your exit.
*goto savemaid
*if (rollsuccess = false)
You try to lift the beam, but it refuses to budge. The woman is unconcious now, so she is atleast spared the pain of your fumbling attempts. But try as you might, the scorched wood is simply too heavy. The ceiling groans ominously above you. Time is running out.
*fake_choice
*selectable_if ( Magic >= 25) #Levitate the beam.
You.........
*goto savemaid
#Leave
There is nothing more you can do for her. You leave the woman behind, returning to the commonroom.
*goto cont.1
Here is an example of the gosub scene as well, which I have also expiremented with putting a bunch of *page_breaks into at random intervals to no avail.
Summary
*label strengthcheck
*gosub skillconversion
*rand d20 1 20
*set rollresult (d20 + strengthmodifier)
*set rollsuccess false
*set rollfail false
*page_break
*if (rollresult >= DCrange)
*set rollsuccess true
*page_break
*if (rollresult < DCrange)
*set rollfail true
*page_break
*return
(so on and so forth with the other stats)
*label skillconversion
*set strengthmodifier (Strength/10)
*set dexmodifier (Dexterity/10)
*set intmodifier (Intelligence/10)
*set conmodifier (Constitution/10)
*set pmodifier (Perception/10)
*set stealthmodifier (Stealth/10)
*set steelmodifier (Steel/10)
*set archerymodifier (Archery/10)
*set brawlingmodifier (Brawling/10)
*set magicmodifier (Magic/10)
*set medmodifier (Medicine/10)
*set survmodifier (Survival/10)
*set leadmodifier (Leadership/10)
*set craftmodifier (Crafting/10)
*set thievemodifier (Thievery/10)
*return
So, unless there is something wrong with my compiler itself, since its been like 8 years since I updated it, I am unsure why is refuses to take ANYTHING but the single success I listed.
I goin crazy here lol.
