![]() |
Item description
How do I make the Gui display the item description?
In the actual weapon I have this PHP Code:
--This is done after item is clicked. PHP Code:
|
Under onCreated put this.description = "whatever"; then in the inventory put findweapon("wepname").description;
|
You need to set the text of Inventory_Item_Text to the weapon's description each time the player selects an item. In other words, when the player selects the item, do something like...
PHP Code:
Additionally, the description needs to be a flag on the weapon object, so use this.description inside the weapon like Gunderak showed above. |
Instead of starting a new thread, I thought I'd post in this one. I am also doing a weapon description in a similar way. But I had another idea but I need some help to complete it.
In the Weapon, I have this: PHP Code:
This is the script where I need the help PHP Code:
PHP Code:
|
Quote:
PHP Code:
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. |
| All times are GMT +2. The time now is 03:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.