1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
on:start{
	$ironstoragelocked=true;
}
on:use{
	if ($ironstoragelocked==true){
		msg "I need a key!",3;
		speech "negative";
		closemenu;
	}else{
		local $gotornot=playergotitem 92;
		if ($gotornot>0){
			$ironstoragelocked=false;
			play "crack1.wav";
			speech "positive";
			msg "I opened it!",4;
		}
	}
}
Scripting Questions


Offline
It's applied to a storage, so a script in an entity in-game.