SphereCommunity
Dialog tag? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Dialog tag? (/Thread-Dialog-tag)



Dialog tag? - Leonidas - 11-30-2016 05:26 PM

Is there anyway to store data on a dialog? For example:

Code:
[DIALOG d_helpnews TEXT]
Put in the new news below.
Accept
Cancel
<TAG0.HELPNEWS>

[DIALOG d_helpnews BUTTON]
ON=0
SRC.SYSMESSAGE Message not changed.
ON=1
SRC.SYSMESSAGE The help news has been updated.
ALLPLAYERCHARS TAG0.HELPNEWS=<ARGTXT[0]>
RETURN 1

I have a dialog that comes up and has a little "Server News" section. Currently the way I'm doing it is when a staff updates the news, it gives everyone the new "news tag" and everyone is able to see the same thing on the dialog. I'm just wondering if theres anyway to use like a tag on dialogs, so I don't have to give everyone a news tag.


RE: Dialog tag? - Kanibal - 11-30-2016 07:49 PM

Use vars, they are global. http://wiki.sphere.torfo.org/index.php/Chapter_5#Vars


RE: Dialog tag? - Leonidas - 12-01-2016 04:11 AM

Ahhh ok thank you