Welcome to the Builder Academy

Question Question about globals and remotes.

More
15 Dec 2013 20:17 #4574 by Parnassus
It seems to me that remotes write to the player's profile and globals write to other files.

remote TBA_greeting %actor.id% (tstat 194)
...gives my profile this:
tba_greeting: 1

* Set the variable to a value, 1 for YES.
set has_bribed_guard 1
* Global it! You can now 'stat leader' and see it listed.
global has_bribed_guard (tstat 23612)
...shows as this:
Global Variables:
Global context: 575 (this is me)
has_bribed_guard:575: 1

So here's my question. Is there a way to put information of the file of an object or a room? Rumble's shotgun (o1392, t45) globals to the gun but I'm looking for something that attaches information to the file of an object or room that isn't itself.

Or, contrariwise, that bribed guard up there, is there a way his boss can check him out and say, 'Leader! You were bribed!' This means using a variable that isn't self or actor.

if %actor.varexists(<variable>)%
if %leader.varexists(<variable>)%
if %shotgun.varexists(<variable>)%
I'm pretty sure those last two won't work but is there a way to do this?

Please Log in or Create an account to join the conversation.

Time to create page: 0.217 seconds