LucidMagic.net

Neverwinter Nights => NwN Building => Script Request => Topic started by: Daniel1975 on January 12, 2005, 05:38:26 AM

Title: Text above head of player
Post by: Daniel1975 on January 12, 2005, 05:38:26 AM
I want to make a door that can't be opened.
Everytime someone tries to open it I want a small text to appear above the head of the player that gives him the reason why he can't open it or what he can hear behind the door. I don't want to use this FloatingTextStringOnCreature. Just this plain white normal Text (same as when players talks smt.)
What command to use???  :blink:
Title: Text above head of player
Post by: Tea-cup on January 12, 2005, 10:11:22 AM
Quote
I want to make a door that can't be opened.
Everytime someone tries to open it I want a small text to appear above the head of the player that gives him the reason why he can't open it or what he can hear behind the door. I don't want to use this FloatingTextStringOnCreature. Just this plain white normal Text (same as when players talks smt.)
What command to use???  :blink:
[snapback]15464[/snapback]
Only way to make that (as far I know) is making the player say that he can't open it.

-Mel
Title: Text above head of player
Post by: Daniel1975 on January 12, 2005, 11:11:26 AM
Quote
Quote
I want to make a door that can't be opened.
Everytime someone tries to open it I want a small text to appear above the head of the player that gives him the reason why he can't open it or what he can hear behind the door. I don't want to use this FloatingTextStringOnCreature. Just this plain white normal Text (same as when players talks smt.)
What command to use???  :blink:
[snapback]15464[/snapback]
Only way to make that (as far I know) is making the player say that he can't open it.

-Mel
[snapback]15480[/snapback]

Oh there is a way. It happens a lot in the first chapter of the game when you try to open some doors or gates you are being told that the gate/door is locked from the other side...remember??  :)
but I'm still searching for the command  :huh:
Title: Text above head of player
Post by: Tea-cup on January 12, 2005, 02:05:31 PM
Quote
Quote
Quote
I want to make a door that can't be opened.
Everytime someone tries to open it I want a small text to appear above the head of the player that gives him the reason why he can't open it or what he can hear behind the door. I don't want to use this FloatingTextStringOnCreature. Just this plain white normal Text (same as when players talks smt.)
What command to use???  :blink:
[snapback]15464[/snapback]
Only way to make that (as far I know) is making the player say that he can't open it.

-Mel
[snapback]15480[/snapback]

Oh there is a way. It happens a lot in the first chapter of the game when you try to open some doors or gates you are being told that the gate/door is locked from the other side...remember??  :)
but I'm still searching for the command  :huh:
[snapback]15485[/snapback]
Isn't that FloatingTextStringOnCreature? As I remeber that it is.

-Mel
Title: Text above head of player
Post by: Daniel1975 on January 12, 2005, 02:18:29 PM
But FloatingTextString makes a big sentence all across the screen and the message can't be read for long because it instantly vanishes...I will look
how it is done in a nwn-standard-campagne  :P

thx anyway!

oh btw mel, did you see my last post in the Antediluvian-section??  :D
Title: Text above head of player
Post by: Illutian on January 13, 2005, 03:59:04 AM
i'm guessing u want the object to say it...least i think that's how it's done in the campaign:

void main()
{
//OnOpen
//set for OBJECT_SELF
object oPC = GetLastOpenedBy();
if (!GetIsPC(oPC)) return;
ActionSpeakString("PIKE OFF IT'S LOCKED!");
}
Title: Text above head of player
Post by: Daniel1975 on January 13, 2005, 04:22:04 AM
Quote
i'm guessing u want the object to say it...least i think that's how it's done in the campaign:

void main()
{
//OnOpen
//set for OBJECT_SELF
object oPC = GetLastOpenedBy();
if (!GetIsPC(oPC)) return;
ActionSpeakString("PIKE OFF IT'S LOCKED!");
}
[snapback]15597[/snapback]
Thx Khadgar. I try that one.
Title: Text above head of player
Post by: Celestial1 on January 13, 2005, 09:09:49 AM
You can make the character speak the line, the door speak the line, or in the combat box with the white thing that scrolls up and disappears.
Title: Text above head of player
Post by: Daniel1975 on January 13, 2005, 09:37:15 AM
Quote
You can make the character speak the line, the door speak the line, or in the combat box with the white thing that scrolls up and disappears.
[snapback]15613[/snapback]
Yes and I want the door to speak the line not the character. I don't want this white line that appears and vanishes after two seconds.
Title: Text above head of player
Post by: Wobbles on January 13, 2005, 01:29:27 PM
Just make it so when he or she clicks it the door opens a chat window and it says:

(Door picture)  The door is barred from the other side



(Character chat options) Finish.





:D
Title: Text above head of player
Post by: Celestial1 on January 13, 2005, 02:05:50 PM
Or, if you just want it to say it aloud without the player responding just do the one door (OWNER) line and skip the response... :D

~Celestial