Non existent variable error

I’m having trouble with a non existant variable error for bullet_roll

I have used the same code endlessly now, I can’t understand why this one scene has the error?

I have defined temp variables at the top as follows:

*temp bullet_roll 0
*temp bullet_damage 0
*temp luckyegg false
*temp lucktest 0

*label set_bullet_damage
*rand bullet_roll 1 6
*set bullets_number - 1
You rolled a ${bullet_roll}
*line_break
*if (bullet_roll = 6)
	*goto winshot
*if (bullet_roll < 6)
	*rand bullet_damage 1 6
Your bullet caused ${bullet_damage} damage
*set jaguarwarriorhp - bullet_damage
The Jaguar Warrior and Jaguar have ${jaguarwarriorhp} stamina remaining
*if (jaguarwarriorhp < 1)
	*goto win
*else
	*goto jaguar_fight
*else
	*bug *rand rolled outside 1-6, please report to forum topic

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.