Well, i'm working on this code for about 3 hours now, and i can't get it fixed. It is made for an combat system, choosing random atks, but it doesn't really work. it sometimes shows just blanc space. i checked the code trice and can't find any blanc <<If>>'s If anyone could help me, that'd be great!
Here's the code i used
(if only anyone knew how to make these yellow cubes...)
<<set $VariableBada to random(1)>>
<<if $VariableBada eq "0">>
You push the creature on it's back and stab the sword in its belly
<<set $variablebada to random(1)>>
<<if $variablebada eq "0">>
You pierced his armor!
Atk 2 Def 1
<<set $LatestAttack1 to 2>>
<<set $BadabraAttack to 1>>
<<if $variablebada eq "1">>
You couldn't pierce the armor...
Atk 0 Def 3
<<set $LatestAttack to 0>>
<<set $BadabraAttack to 3>>
<<if $VariableBada eq "1">>
/* Insert any other atk here */
If you need the 'decoder' please ask me, but i think it's in this piece of code
PS I used SugarCube 2.18.0 in Twine 2.x