accentuation in text PrintTextAbovePrivate

If your problem is with a specific version of the distro or core, look below. If you are unsure, this is your place.
Post Reply
morgoth
New User
Posts: 9
Joined: Thu Jan 24, 2019 3:24 pm

accentuation in text PrintTextAbovePrivate

Post by morgoth » 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.

Skinny
Expert Poster
Posts: 72
Joined: Wed Dec 19, 2012 10:27 pm

Re: accentuation in text PrintTextAbovePrivate

Post by Skinny » Fri Feb 08, 2019 8:02 am


morgoth
New User
Posts: 9
Joined: Thu Jan 24, 2019 3:24 pm

Re: accentuation in text PrintTextAbovePrivate

Post by morgoth » Wed Feb 13, 2019 7:11 pm

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

Skinny
Expert Poster
Posts: 72
Joined: Wed Dec 19, 2012 10:27 pm

Re: accentuation in text PrintTextAbovePrivate

Post by Skinny » Wed Feb 13, 2019 9:25 pm

‘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.

morgoth
New User
Posts: 9
Joined: Thu Jan 24, 2019 3:24 pm

Re: accentuation in text PrintTextAbovePrivate

Post by morgoth » Thu Feb 14, 2019 5:49 am

Thanks

Post Reply