DoomeDx Posted December 2, 2017 My map has special keys that can unlock cabinets that contain weapons and ammo. I want those keys to carry over to the next level, however, it doesn't work as intended since it keeps reverting back to "0'' when the new map is loaded. CODE: Cabinet Script #library "cabinet" #include "zcommon.acs" bool PowerOn = FALSE; global int 2: cabinetKeys; script "cabinetKeyFound" (void){ cabinetKeys++; HudMessage(s: "Cabinet Card acquired"; HUDMSG_PLAIN, 0, CR_GREEN, 0.5, 0.27, 3.7); HudMessage(s: "Card Count:", i: cabinetKeys; HUDMSG_PLAIN, 0, CR_GREEN, 0.5, 0.32, 3.7); } Map01 and Map02 import the cabinet library using... #import "main" #import "cabinet" #include "zcommon.acs" Any ideas on how to make the variable carry over to the other map? I've been trying things for over an hour 0 Share this post Link to post
DoomeDx Posted December 2, 2017 (edited) Fixed it. I was importing the variables while also using a LOADACS lump. Apparently that causes problems. All good now 0 Share this post Link to post