Quote:
Originally Posted by greggiles
PHP Code:
function onSetDescription() { player.description = "blah, blah, blah"; }
|
It would be better to do something like:
PHP Code:
function onSetDescription() {
player.client.description = "hihihihihi";
showText(213, screenwidth/2-50, screenheight/2+50, "showg", "b", "DESCRIPTION:" @(player.client.description));
}
I'd recommend updating the text right when you update the description with
onSetDescription, then have the original launch read from the var, which is why it is still being set here.
Add that to your inventory script, you can't cross-reference other scripts whilst on clientside, as that is provoking serverside data.
You can use a trigger to the server then back to the client, but that's just a waste of time when you have a shorter, less complex way of completing your task that still is as efficient.