![]() |
Any ideas why it does not work.
Explain where I went wrong and why it doenst work, dont just give me a new code, also please explain your code, As I am only learning NPC Gscript,
Code In 1 NPC NPC Code: Code in 2nd NPC NPC Code: Code in NPC that displays which NPC you are over: NPC Code: One works fine, Nothing happens when your mouse is over 2, If there is an Easier way for me to do the script please say so and explain what you are doing and how it works =) |
timeout must be 0.1 or greater serverside.
Also, it doesn't know who's mouse to read, so you may want to put the mouse clauses clientside. |
Ok that works fine now, But the second one still doesnt work:
NEW First: NPC Code: New Second: NPC Code: New Displayer: NPC Code: Still only first one works (Eventually it will be put in about 17NPC's) |
Clientside is now abover the playerenters part.
|
server strings can only be set serverside i believe
|
Can you please answer my PM and reply =)
|
Spark, I am your father... :)
|
use triggeraction to triger the npc serverside and set the string.
|
x.X I already told you x and y was stupid like that!
if (abs(mousex-x)=<1 && abs(mousey-y)=<1) it is MUCh better and you can move it! x.X ---Shifter |
Re: Any ideas why it does not work.
Quote:
But when your mouse is over the first NPC this will be executed: 1. Script: (mouse is over it) NPC Code: 2. Script: (mouse is not over it) NPC Code: Since they are both executed after each other, the second script would remove the effect of the first one. You could solve it by only clearing the string when the mouse just left the NPC, but not always when the mouse is not over it. Just do "this.mouseoverme = true;" when the mouse was moved over it and when the mouse is not over the NPC, you should check this variable first: "if(mousex>... && this.mouseoverme == true) {" Then you could clear the string...and you shouldn't forget to set the variable to false again. |
All times are GMT +2. The time now is 08:26 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.