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 »

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: 76
Joined: Wed Dec 19, 2012 10:27 pm

Re: accentuation in text PrintTextAbovePrivate

Post by Skinny »

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

Re: accentuation in text PrintTextAbovePrivate

Post 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
Skinny
Expert Poster
Posts: 76
Joined: Wed Dec 19, 2012 10:27 pm

Re: accentuation in text PrintTextAbovePrivate

Post 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.
morgoth
New User
Posts: 9
Joined: Thu Jan 24, 2019 3:24 pm

Re: accentuation in text PrintTextAbovePrivate

Post by morgoth »

Thanks
Helene79
New User
Posts: 1
Joined: Wed Aug 28, 2019 7:56 am

Re: accentuation in text PrintTextAbovePrivate

Post by Helene79 »

Skinny wrote: Fri Feb 08, 2019 8:02 am Use PrintTextAbovePrivateUC
https://docs.polserver.com/pol100/fullf ... ePrivateUC transfers Caen
Thank you very much
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Re: accentuation in text PrintTextAbovePrivate

Post 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.
Post Reply