LockExit mod

Version 1.2

By Richard Heath, aka Yith. yith@globalnet.co.uk. http://www.wodmod.com 22/08/00

THIS MATERIAL IS NOT MADE OR SUPPORTED BY ACTIVISION.

This is beta software, and I am not responsible for anything that happens to your computer.

Contents

  1. Introduction
  2. Usage
  3. Finding out location and exit numbers
  4. Printme file
  5. Version information
  6. Credits

1. Introduction

This will allow the storyteller in a multiplayer game to lock and unlock level exits during a game. Also the exit state will be saved when the game is saved. Exits can be locked one way or both ways. Thankfully only the Storyteller needs this mod installed.

Please feel free to add to/modify this code and put into your mods, but please ask me first and include me in the credits. We would like to urge everyone who makes additional mods for the Codex to please include this with their mods. (Especially considering "Redemption" only allows for _2_ codex.nob files: 1 in the main folder, and 1 in a -user defined folder. So please include it in your codex modifications to ensure future compatability.)

2. Usage

  1. In the game, the ST should bring up the console normally.
  2. The command to enter uses the syntax: stcmd (un)lock <location#> <exit#>
    Examples:
    	stcmd lock 0 2
    	stcmd unlock 2 5

3. Finding out the exit numbers and level numbers

  1. Go to your Chronicles directory, find the NSC file (eg. MP_London_Null.nsc) for the level you want.
  2. Open it with Notepad.
  3. To determine the number of the location -
    You will see lines such as
    	...
    	location WestLondon		l1_west.nil	null	mapLondonWest.nui	mapLondonWestMain	0x0040
    	location EastLondon		l1_east.nil	null	mapLondonEast.nui	mapLondonEastMain	0x0040
    
    	location SocietyOfLeopold3	L1_SOC3.nil	null	mapLondonWest.nui	mapSocietyOfLeopold	0x0
    	location SocietyOfLeopold2	L1_SOC2.nil	null	mapLondonWest.nui	mapSocietyOfLeopold	0x0
    	location SocietyOfLeopold1	L1_SOC1.nil	null	mapLondonWest.nui	mapSocietyOfLeopold	0x0
    	...
    	The locations are numbered from 0 starting at the top. So in this case
    	WestLondon		= 0
    	EastLondon 		= 1
    	SocietyOfLeopold3	= 2
    
  4. To determine the number of the exit -
    You will see lines such as
    	...
    	# WestLondon exits
    	exit	WestLondon,0	SocietyOfLeopold1,0
    	exit	WestLondon,1	CurioShop,0
    	exit	WestLondon,2	EastLondon,0
    	exit	WestLondon,3	ClubTenebrae,0
    	...
    
    These describe the links between levels. The numbers after the commas are the exit numbers which need to be put in the stdcmd command.
  5. Note if you are locking an exit on your current level, simply use "99" for the location and to lock all exits in a location use "100" for the exit number. Also using "100" for the exit number and location will lock all doors in the game. Remember: 99=this 100=all.
  6. This will lock the door only 1 way. You will need to lock the "other side" of the door as well.

    To lock the door leading from West London to the Society of Leopold (while anywhere)

    	stcmd lock 0 0
    To lock the door leading from West London to the Society of Leopold (while in West London)
    	stcmd lock 0 0  
    or
    	stcmd lock 99 0
    As you can see, 99 is substitued for the location because you are simply locking an exit at your _current_ location.

    To lock the door leading from West London to the CurioShop

    	stcmd lock 0 1
    To lock the door leading from the West London to the CurioShop and vice versa
    	stcmd lock 0 1  
    and
    	stcmd lock 15 0  
    (curio shop is location 15, and the exit is 0) To reverse all the above locks, simply replace the work "lock" with "unlock"
    	stcmd unlock 0 0  
    	stcmd unlock 0 1  
    	stcmd unlock 15 0

    To lock all doors on this level

    	stcmd lock 99 100
    To unlock all doors in the game
    	stcmd unlock 100 100

    4. Printme.txt File

    We have included a file called
    "lockexit_printme.txt".

    It contains the location and exit numbers for the multiplayer Prague, Vienna, New York, and London chronicles included with the game. With all the above information, you should be able to figure out the numbers for other chronicles (whether included with game or customer created). If you wish, you may simply print the file as is. However I would recommend cut and pasting it into another notepad window for your individual printing. (Such as cut pasting only the New York locations and exits.) This printme file was put together quickly. While Freaky did his best to make sure everything is accurate, there may be a mistake or two. If you find one, email him at freakyferretboy@hotmail.com.

    5. Version Info

    Version 1.2 - Now supports 100 for all. So can un/lock all exits in a map/game. N.B. only locks the first 20 exits in a map and the first 40 maps in a game.
    Version 1.1 - Now works with Region Exits as well as Click Exits.
    Version 1.0 - First Version

    5. Credits

    Yith - codex coder, author of the readme, and getting it just to work!
    yith@globalnet.co.uk
    Freaky Ferret - beta testing, the printme freakyferretboy@hotmail.com
    NSI_Veldrin - for supplying the original code and troubleshooting and debugging
    NSI_MagicMan - troubleshooting and debugging

    Contact me for any help/comments you might have at yith@globalnet.co.uk . Please feel free to add to/modify this code and put into your mods, but please ask me first and include me in the credits.

    Thanks, Yith