Another day, another gremlin
OK, when I manually play through my story (which is starting to become a pretty major undertaking!) it plays through just fine, no errors pop up at all success! But, when I run Randomtest in CSIDE it comes up with an error. The error is:
RANDOMTEST FAILED: Error: subroutines line 172: invalid return; weāve already returned from the last gosub
Two things strike me as odd about this. First off (after going through the rather lengthy subroutine) there are no duplicate calls. Second, the path the Randomtest took never called the subroutine. Does anyone have any ideas what could be causing this error? Iām including the section of code that includes the line it refrences (not the whole subroutine though, did I mention itās pretty big?)
*else
*if (race = "elf")
*if (gender = "Male")
*set greeting "forest lord"
*set farewell "milord"
*return
*elseif (gender = "Female")
*set greeting "forest lady"
*set farewell "milady"
*return
*else
*set greeting "deepwood friend"
*set farewell "respected friend"
*return
*elseif (race = "trylle")
*set greeting "noble one"
*set farewell "dear friend"
*return
*elseif (race = "halfling")
*set greeting "fairkin"
*set farewell "close cousin"
*return
*elseif (race = "crossborn")
*if (gender = "Male")
*set greeting "brother"
*set farewell "bonded brother"
*return
*elseif (gender = "Female")
*set greeting "sister"
*set greeting "bonded sister"
*return
*else
*set greeting "sibling"
*set farewell "bonded one"
*return
*else
*set greeting "nothinglost"
*set farewell "stranger"
*return
Any suggestions would be appreciated!
Lessa