I have a script that increments a global variable twice by 3 each time. This variable starts out as 0. Once it is incremented to 6, it is divided by 3. Two should be the answer, but the script that checks that math always returns false to that statement and I'm not sure why.
Here are some excerpts of the scripts. Perhaps one of you guys know what might be going on.
Code:
plotscript,mfsword,begin
if (check tag (279)==false) then (
set tag (279,on)
play sound (35,false)
mflastpuzzle += 3
wait for all)
end
plotscript,mfshield,begin
if (check tag (280)==false) then (
set tag (280,on)
play sound (35,false)
mflastpuzzle += 3
wait for all )
end
plotscript,mfbook,begin
if (check tag (281)==false) then (
set tag (281,on)
play sound (35,false)
variable (mfnm)
mfnm := mflastpuzzle
mflastpuzzle := (mfnm / 3)
wait for all)
end
plotscript,mflastswitch,begin
if (mflastpuzzle == 2) then (
set npc direction (11,left)
play sound (35,false)
wait (10)
play sound (2,false)
write map block (55,41,61)
write map block (55,40,0)
write pass block (55,41,11)
wait for all)
else (
fight formation (0)
mflastpuzzle := 0
set tag (279,off)
set tag (280,off)
set tag (281,off)
)
end
plotscript,mfsword,begin
if (check tag (279)==false) then (
set tag (279,on)
play sound (35,false)
mflastpuzzle += 3
wait for all)
end
plotscript,mfshield,begin
if (check tag (280)==false) then (
set tag (280,on)
play sound (35,false)
mflastpuzzle += 3
wait for all )
end
plotscript,mfbook,begin
if (check tag (281)==false) then (
set tag (281,on)
play sound (35,false)
variable (mfnm)
mfnm := mflastpuzzle
mflastpuzzle := (mfnm / 3)
wait for all)
end
plotscript,mflastswitch,begin
if (mflastpuzzle == 2) then (
set npc direction (11,left)
play sound (35,false)
wait (10)
play sound (2,false)
write map block (55,41,61)
write map block (55,40,0)
write pass block (55,41,11)
wait for all)
else (
fight formation (0)
mflastpuzzle := 0
set tag (279,off)
set tag (280,off)
set tag (281,off)
)
end
Cornbread Chemist



