The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question with .lang and global variables
theabcs Offline
Junior Member

Posts: 5
Threads: 2
Joined: Apr 2012
Reputation: 0
#1
Question with .lang and global variables

Hey, I know a little about scripting but i need some help. I have a global variable set and i would like it to display when the player looks at a custom item in the inventory. Is there any way I can display the value of the variable in the .lang file during an entry script? So for example:

<CATEGORY Name="Inventory">
<Entry Name="ItemName_item">blah blah blah</Entry>
<Entry Name="ItemDesc_item"> XXXXXXXXXXXXX </Entry>
</CATEGORY>

I would like to somehow insert the value of the global variable in the "XXXXXXXXXXXXX" so when the player moves their mouse over, they see the set amount. Is this possible?
(This post was last modified: 04-04-2012, 10:30 PM by theabcs.)
04-01-2012, 12:19 AM
Find


Messages In This Thread
Question with .lang and global variables - by theabcs - 04-01-2012, 12:19 AM



Users browsing this thread: 1 Guest(s)