View Full Version : The Floaty text?


Errol
Thu, 4th Jul '02, 5:04pm
Hi,
How do I make the floaty text appear above an NPC's head? I've got the code:
void FloatingTextStringOnCreature(string sStringToDisplay, object oCreatureToFloatAbove, int bBroadcastToFaction=TRUE)
But I do not understand how to use it. Do I insert this in the NPC properties? Or what do I do with it?

Please Help!

TriLleX The Slayer
Thu, 4th Jul '02, 5:09pm
I made one for my cook in the inn.. I think I just added one string to him and then end dialogue.

Errol
Thu, 4th Jul '02, 8:44pm
But how do I insert it?
Do i just make the conversation, a one-liner; then make [action taken] or whatever to that Code above?

TriLleX The Slayer
Thu, 4th Jul '02, 10:35pm
I haven't used any code.

Vormaerin
Fri, 5th Jul '02, 11:07am
There is a SpeakOneLinerConversation function that does what you are asking for. You don't need all that stuff you have up above.

You might try looking in at a character that speaks a 'over the head' dialogue in the editor. Several of the characters in the Prologue do so, that should show you how to use the above function.

Aloha
Vormaerin

Errol
Fri, 5th Jul '02, 6:10pm
Thanks Vormaerin, i've loaded up the Prologue, and i'm working fine with it.
:) nice one.