Page 1 of 1
accentuation in text PrintTextAbovePrivate
Posted: Thu Feb 07, 2019 4:42 pm
by morgoth
How to put text with accentuation in the function PrintTextAbovePrivate?
PrintTextAbovePrivate(character, "Você se escondeu", character);
I did it that way and it's not working.
Re: accentuation in text PrintTextAbovePrivate
Posted: Fri Feb 08, 2019 8:02 am
by Skinny
Re: accentuation in text PrintTextAbovePrivate
Posted: Wed Feb 13, 2019 7:11 pm
by morgoth
PrintTextAbovePrivateUC(above_object, uc_text, langcode, character, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, journal_print := JOURNAL_UC_PRINT_NAME)
I can not find which object to pass in the argumeto: above_object.
I have already tried to use: use npc and the function and Self() the error unable to find module npc not working
Re: accentuation in text PrintTextAbovePrivate
Posted: Wed Feb 13, 2019 9:25 pm
by Skinny
‘above_object’ can be any item ref or character ref.
The module NPC with Self() function works when you using inside AI script.
For example, if you test with an user command like .testtext, you can use:
Code: Select all
use unicode;
program testtext (character)
var example := “acentuação”;
PrintTextAbovePrivateUC(character, CAscZ(example), "ENU", character);
endprogram
Using your example:
morgoth wrote: Thu Feb 07, 2019 4:42 pm
How to put text with accentuation in the function PrintTextAbovePrivate?
PrintTextAbovePrivate(character, "Você se escondeu", character);
I did it that way and it's not working.
Code: Select all
use unicode; //Put this in first line of your code.
PrintTextAbovePrivateUC(character, CAscZ("Você se escondeu"), "ENU", character);
In Portuguese:
Você pode usar um item ou o próprio personagem para ser o alvo.
O módulo “use npc;” com a função Self() funciona quando você está usando dentro da inteligência do NPC.
Por exemplo, se você testar com um comando de jogador tipo .testtext, você pode usar o código acima.
Re: accentuation in text PrintTextAbovePrivate
Posted: Thu Feb 14, 2019 5:49 am
by morgoth
Thanks
Re: accentuation in text PrintTextAbovePrivate
Posted: Sun Sep 01, 2019 9:50 am
by Helene79
Re: accentuation in text PrintTextAbovePrivate
Posted: Mon Sep 02, 2019 4:26 am
by DevGIB
Its probably also worth mentioning we current have a build in testing which supports standard UTF8 unicode characters for string entries.
You can download the test build here:
https://ci.appveyor.com/api/buildjobs/v ... 01-bin.zip
if you come across anything interesting, or experience any bugs please don't hesitate to let us know.