Aller au contenu

Photo

Readable Signs


  • Veuillez vous connecter pour répondre
9 réponses à ce sujet

#1
Joshj5hawk

Joshj5hawk
  • Members
  • 8 messages
Hey I've been having issues trying to get a sign to display a message, eg Rooms 1-10. i tried making a conversation and tried writing a script (below) to get it to display while clicking, any suggestions?
-----------------------------------------------------
void main()
{

object oPC = GetClickingObject();

if (!GetIsPC(oPC)) return;

SendMessageToPC(oPC, "Rooms 1-10");

}
-----------------------------------------------------

#2
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
Try:

object oPC = GetLastUsedBy();

And put it in the OnUsed event of the placeable.

If you just want to see what the sign says when a player highlights the object, make sure it is set to useable and set the objects name to whatever you want the player to see when they move their cursor over the object.

Modifié par GhostOfGod, 07 septembre 2010 - 04:35 .


#3
Joshj5hawk

Joshj5hawk
  • Members
  • 8 messages
one thing i just tried was to set the sign as usable? Should i have done that first (sorry, kinda new xD)

#4
Psyammy

Psyammy
  • Members
  • 45 messages
void main()

{

object oPC = GetLastUsedBy();

// For Floaty Text

FloatingTextStringOnCreature("Your Message",oPC);

// For Speaking a string, Text is displayed for one Hartbeat.

SpeakString("Your Message");

// For a Privet message

SendMessageToPC(oPC,"Your Message");

}

//this will show the message in your chat box, combat box as well as floty text over the sign put this

//script in the onused box of the sign

#5
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
Ah yes. That is needed. And no worries. we were all new once.

#6
Joshj5hawk

Joshj5hawk
  • Members
  • 8 messages
Thank you both =]

#7
TheSpiritedLass

TheSpiritedLass
  • Members
  • 765 messages
We use this script extensively throughout our PW.  It pulls up the examine window when you click on a placeable.

http://nwvault.ign.c...d=20023&id=3423

#8
SuperFly_2000

SuperFly_2000
  • Members
  • 1 004 messages
I am not exactly sure I get this but why not just rename the sign to "Room 1-10". This way the players will get that text every time they do mouseover on the sign.



No scripts needed for that as well as that is how the game is supposed to work. (I am kind of allergic to scripts also...especially ones that aren't necessary)

#9
TSMDude

TSMDude
  • Members
  • 865 messages

TheSpiritedLass wrote...

We use this script extensively throughout our PW.  It pulls up the examine window when you click on a placeable.

http://nwvault.ign.c...d=20023&id=3423


This one is the one we use as with one sign you can do a 1000 things and all you need to do is change the String variable on it to say whatever you want..

Then you can change the name to Room 1, have it on the examine AND when they click on it the sign itself says "Room 1" or you can even add color to your module and make it do it in Color.

#10
420

420
  • Members
  • 190 messages
For signs I use the description and this script:

void main()
{
AssignCommand(GetLastUsedBy(), ActionExamine(OBJECT_SELF));
}


-420

Modifié par 420, 07 septembre 2010 - 04:45 .