Hiya!
I have two text entries.
Let’s call them Ding and Dong.Ding is text that varies.
Dong is text that varies.
Oh Good so that works.
Through the magic of science and Cthulhu [size=1]Ph’nglui mglw’nafh C’thulhu R’lyeh wgah’nagl fhtagn[/size] I have been able to designate text to both Ding and Dong [size=1]and their third cousin, Jessebell[/size] however, they will be matched together. [code]DingDong is text that varies.
When play begins:
now DingDong is the substituted form of “[Ding][Dong]”;[/code]So far so good, right?
Well, sometimes Ding ends with the same letter that Dong begins with, which completely ruins the vibe of the thing.
Is there a way to check for last letters and first letters of text entries and compare to see if they’re the same, and if they are, to delete either of them, or alter them?
So instead of “DOG + GOAT = DOGGOAT” I would want (because I’m weird) “DOGOAT” instead of doubling up on G’s.
Bonus points if I can check to see if they double up and in that case change the G in GOAT with a B, to create a DOGBOAT.
Is there a way this can be done in GLULX?