Page 1 of 1
Uppercase in usecode with '^' (Caret)
Posted: Wed Jan 21, 2015 8:44 pm
by lazar0
Ok, after embedding some pictures in my last post, I want to comment the issue in the subject.
In usecode, I've seen that the Caret char '^' helps U7 to make UpperCase the FIRST letter of the Word that it precedes.
So, if we have this titles names (all lowercase):
milady
milord
and a sentence like this:
"^" + titlename + ", how are you today?". We will see in screen this:
'Milord, how are you today?'
Is this implemented in Exult? It has not effect like in DOS version as far as I seen.
David.
Re: Uppercase in usecode with '^' (Caret)
Posted: Wed Jan 21, 2015 10:13 pm
by Dominus
I think something like that is there. In both SI Fixes and BG Keyring a ^is used once and it might be for that.
Re: Uppercase in usecode with '^' (Caret)
Posted: Wed Jan 21, 2015 10:45 pm
by lazar0
But Exult does not uses it, right?
Re: Uppercase in usecode with '^' (Caret)
Posted: Thu Jan 22, 2015 5:35 am
by Dominus
Honestly I don't know. I'll have to bug Marzo
Re: Uppercase in usecode with '^' (Caret)
Posted: Thu Jan 22, 2015 7:58 am
by lazar0
Ok. If you want I could open a ticket in bugtracker.
As I've seen in DOS version, although Caret '^' is in middle of the sentence, it uppercases the first letter always. If it is in uppercase, it maintains the letter in uppercase.
You can check it with Petre, at the beginning, he uses ^ in:
===
Petre bows before you. "^
."
===
Re: Uppercase in usecode with '^' (Caret)
Posted: Thu Jan 22, 2015 9:13 am
by Dominus
Hmm, yes please open a ticket. Makes it a tad easier to point Marzo at...
Re: Uppercase in usecode with '^' (Caret)
Posted: Sat Jan 24, 2015 8:52 pm
by Dominus
Thanks for bringing that to our attention. Never realized before that it shows being wrong right in the first scene of BG
(Peter will say Milady, Milord after you confirm being the avatar)
Re: Uppercase in usecode with '^' (Caret)
Posted: Sat Jan 24, 2015 10:26 pm
by lazar0
Hi Dominus,
yes, now it Works well. Thanks to Marzo it is working as in DOS versiĆ³n.
I only tested Peter sentence, but I can assure you that there are a bunch of "Carets".
I will let you know if I see something odd in this behaviour when I revise the texts.
Thanks again (this time to Marzo) for solving the issue.
David.