I want to do this because I've dynamically added props to all my rooms and I need some way handle interactions with all the props currently in the room. I have an array of all current room props, so I figured I'd just iterate through the array and apply a generic 'take' said string (for example) for each one. Putting that aside, stripped down, here's a basic example of what I'm trying to do:
(var aString, bString) // I also tried (var aString[50], bString[50]) variations...
StrCpy(aString "take/")
Print(aString) // This displays 'take/'
StrCpy(bString "lantern") // Obviously, this would be a variable of some sort, for testing I hard-coded it
Print(bString) // This displays 'lantern'
StrCat(aString bString) // Hopefully the result would be take/lantern, right? Game locks up here...
(if(Said(aString))
// Do stuff here based on what was specified for bString
)
The StrCat command is going awry - I'm doing something wrong, I've attempted to debug it with Print() statements and my efforts result in corrupted text, sometimes empty strings, sometimes game just freezes up completely). Has anyone successfully used these string kernel functions? Or does anyone know a better way to do what I'm attempting?