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
Script Help Is it possible to set a message through a string variable?
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#8
RE: Is it possible to set a message through a string variable?

No, what this does is use a different entry.

PHP Code: (Select All)
SetMessage("Messages"GetLocalVarString("StringVar"), 0); 

Let's say StringVar is currently "MessageStop"

If you have MessageStop as an entry in your lang file, it will call that one and display its text. For example "You need to stop."

If StringVar is "MessageGo" instead, then it will call the MessageGo entry instead of MessageStop.

So it will display that one's text, for example "You need to go."

@Daemian
Although I think it's possible to use entries with spaces, I don't think you should, just to be safe.

(This post was last modified: 08-30-2014, 06:08 PM by Mudbill.)
08-30-2014, 05:59 PM
Find


Messages In This Thread
RE: Is it possible to set a message through a string variable? - by Mudbill - 08-30-2014, 05:59 PM



Users browsing this thread: 1 Guest(s)