![]() |
Making sense of "else"
No matter what I do, whenever I type in ANY text at all and it will say whats in the else command (ex: I say jswkdng I get msg saying, "text part 2")
I'm trying to use this to make seperate messages when you have already talked to him. NPC Code://CLIENTSIDE |
Quote:
PHP Code:
PHP Code:
Lastly: PHP Code:
|
clientr. strings are set on the serverside, and can be read on the clientside. And if you're doing this GS1(which I assume you are by your syntax's, you have to set the string as a string, not as a variable.
setstring clientr.helloworld,1; |
Quote:
|
Quote:
|
Well I'm not that all experienced with online stuff... but that's always how I've known them to work. Is this 'working' working online on a server or offline?
|
clientr.var can only be set on clientside.
It can be read clientside or serverside. TServerPlayer() I believe. |
TServerPlayer; its not a function z.z
|
Quote:
It needs a (). PHP Code:
|
Quote:
varname = value; in the new engine is the default way of assigning values to variables; if this is working in your script for some string values, then you are probably mixing old and new GScript, which you shouldn't be doing. |
That's what I thought, and it was really confusing me.
|
Quote:
Here is what I mean: In my start area, you have a class selection. Whichever class you say, its gives you your certain clientr.player_class=*. I look in player information through RC and there it is, clientr.player_class=1 Then I do a seperate script, in this case for a quest. If you say something specific it gives you clientr.quest=1. Now I don't know why, but this occurs with the script quite a bit: 1. I say whats needed to trigger the script thus clientr.quest=1 2. I go to a door scripted to only open if (clientr.quest=1) and it works. Yet in player attributes on RC, it doesn't show clientr.quest=1, instead its just blank. (First question: why does the door open if its not visible in there?) 3. I then relog and try the door again. It does not work as if I had the clientr set Any ideas why it would be doing this? P.S. If you need me to reword this please ask lol, it was hard typing it -_- |
| All times are GMT +2. The time now is 11:00 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.