Scripting, Code & Interaction: Difference between revisions

Jump to navigation Jump to search
Line 54: Line 54:
   '''import int''' health;
   '''import int''' health;
   '''import String''' myname;
   '''import String''' myname;
If you want your variables to be available in ALL rooms, import them into the Global Header (Ctrl-H).


The last two steps are necessary with global variables. Remember! ''ONLY'' the '''import''' command requires the data type as well as the variable name. The '''export''' command ''ONLY'' needs the variable name.
The last two steps are necessary with global variables. Remember! ''ONLY'' the '''import''' command requires the data type as well as the variable name. The '''export''' command ''ONLY'' needs the variable name.