![]() |
Simple, yet Confusing problem.
I cannot get this script to work. It is so simple yet it will not work.
The script is a baddy for a quest and as you can see it asks you a question, the player is supposed to respond with an answer. PHP Code:
|
Please be more clear with your problem; what does and doesn't function correctly?
|
For some reason I recall hearing somewhere that showtext isn't supposed to be used under onCreated...
|
Quote:
|
Quote:
|
It may work but there could be unknown reasons as to why it would be better to use it some other way, like in onPlayerEnters().
|
My problem is when the player answers the question (saying test) nothing happens. It just stays the same.
|
Have you took steps to debug it?
Have tried having it do something else, like changing the players text instead of changing the image? You should break down the part of the script not working, adding little test lines until you can find out specifically what the problem is. |
Quote:
PHP Code:
|
Ok now this is just being plain weird.
I got the script to work just fine except for one problem. NPC Code://#CLIENTSIDE Now this all works except when I click on the Baddy the showtext works ok but for some reason it also gives me a sign with the previous script which said to show a sign. And it does the same thing for when the player chats test. It shows me a sign and it changes the text above the baddy. Its like the script before this one and this modified one are conjoined together. Anybody know how to fix this? |
ERROR! ERROR! ERROR!
You are using 2x //#CLIENTSIDE, terminating program. |
It still doesnt work even if I take the clientside out :(
|
Is this NPC a class?
|
I find it using findimg() would be better..
findimg(index).text = "foo"; instead of recreating the TShowImg object you can just change the vars of it.. |
reconnect? : )
|
I reconnected, and nothing happened, and yes it is an npc class.
|
showtext shows an image, which the engine generates with the characters given. It isn't a GuiTextCtrl, or such, and the text can't be changed like that ...
You need to reshow the text in order for it to change. |
Quote:
|
Quote:
PHP Code:
|
| All times are GMT +2. The time now is 04:09 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.