I've run into a problem while making my game.......

retroPacifist
07 Nov 2016, 03:54I have an If, which is: }
if (Toothfairysprite UNUSED.aspect = space) {
The Medium.last = frogs
And in the beginning of the game, there's a list of aspects to choose from, Space is one of them. I have tested this and everything works up until the second line. It says "Error running script: Error compiling expression 'Toothfairysprite UNUSED.aspect = space': Unknown object or variable 'space'". Can someone help me solve this???????
hegemonkhan
07 Nov 2016, 04:01is 'space' an actual Object in your game, or is it just text/string. If it is just text/string, and your 'Toothfairysprite UNUSED.aspect' Attribute is a String Attribute, it needs to be:
if (Toothfairysprite UNUSED.aspect = "space") { /* scripts */ }
otherwise, there' might be an earlier code line having a typo/mistake, and thus we'd need to see your code to find and fix it for you.

retroPacifist
07 Nov 2016, 04:06Thank you, it worked!!!!!!!
hegemonkhan
07 Nov 2016, 04:53see this link for more information:
http://textadventures.co.uk/forum/quest/topic/r4ysng0dv0c4p0xtfiguwg/how-to-change-an-alias-with-an-script-solved#a14c1b6c-9df3-4fb6-853f-332e28381c08