It looks like you're new here. If you want to get involved, click one of these buttons!
<<if $Level >= 2>><<set $EnemyName to either("Strong Bandit","Feral Orc","Mechanical monster","HyenaThief")>> <<else>> <<set $EnemyName to either("Rookie","Thief","Contraption","Drunk Dwarf")>> <<endif>>for some reason this code keeps getting either a missing
child tag <<endif>> was found outside of a call to its parent macro <<if>> or the <<else>> was outside macroAny solutions?
Comments
here is the whole list, latest twine2 running on sugarcube 2.12.1.
I know the level code isn't the best atm but It works and I intend to fix it up later with a few new tricks i learned but yeah $Name isnt working.
Also the error is now of $EnemyNames1.
As far as the second and third examples go. Where are you setting $Level and what are you setting it to? Your logic is also likely hosed, but we'll get to that later.
Copy and paste than retyped the names and changed to , nothing is wrong with the leveling side of the variables, all it's used for in this case is to check if the PLyr has the right level and I checked the level side well, everything works there. Also the second example definintely works. The problem seems to lie here or here .
If I were to update sugar cube would it effect anything, I hear there is a new version. Maybe it is a bug.
This is by far the simplest thing I am doing, changing the names should be a breeze right
Edit; Fixed