AGI ROOM 0

From Sierra WikiNew
Revision as of 20:54, 30 January 2022 by sierraw>Andrew Branscom (→‎See also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
  This article is a technical stub page. You
can help the Sierra Wiki by expanding it.



ROOM #0



Adventure Game Development System[1] wrote:

ROOM #0 contains the LOGICS that are common to the entire game, low level functions like "SAVE GAME," "HELP," etc. Instead of coding instructions to handle saving the game into every room, put it in room 0. DYNAMIC LOGICS are used for the same reason. They are rooms that have no picture, but process commands that occur in multiple ROOMs. Every ROOM that needs swimming can load a LGC.SWIM which deals with commands like SWIM, and standing ego up when he is no longer in water. It would be a nuisance and a waste of disk space to code this redundantly for each ROOM with water in it. If it were in ROOM #0 it would occupy ram even in ROOMs without water. Memory is valuable; anything that cuts down memory requirements is good!


Description

Logic 0 is special, so a room number of 0 is not valid.


References

See also