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.
accentuation in text PrintTextAbovePrivate
Re: accentuation in text PrintTextAbovePrivate
Use PrintTextAbovePrivateUC
https://docs.polserver.com/pol100/fullf ... ePrivateUC
https://docs.polserver.com/pol100/fullf ... ePrivateUC
Re: accentuation in text PrintTextAbovePrivate
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
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
‘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:
Using your example:
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.
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
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.