Rance 02:Notes

This is a Notes page for Rance II and Rance 02. It is intended to document information useful to programmers and data-miners.

Between Rance 02 and Kai, most of the content code files were renamed, and moved from folder シナリオ (scenario) and put into a folder marked TAKI instead. Variables and functions have been given more evocative names, e.g. チサ行方不明 (Cith missing) instead of A02. The only files that remain in the シナリオ folder are the game over sequence, the Alice's mansion code (unchanged), and a collection functions handled by TADA, messily removed their original homes and gathered under the new file ■多田関数 (TADA function). Minor code changes, like standardization, abound.

KaiKai moves most root-level code files to the シナリオ subfolder, leaving only the classes, constants and globals.jaf files.

All versions of Rance02 use the same version of the Asra Framework.

Rance02 Scenario Files
This is a list of files in the original Rance02. The Kai patch carries functions from these original files into a new structure, but (mostly) retains the original function names, including the common function headers. For that reason, the header is listed alongside the files.

File		Literal		Purpose				Function Header Aｱｲﾃﾑ		A-Item		Chapter 1 Item shop		アイＡ_ Aｷｬﾝﾌﾟ		A-Camp		Chapter 1 Camp			キャＡ_ Aｷｮｳｶｲ		A-Kyokai	Chapter 1 Church		教会Ａ_ Aｻｶﾊﾞ		A-Sakaba	Chapter 1 Bar			酒場Ａ_ Aｼｨﾙ		A-Sill		Sill's camp H-scenes		シィルＡ_ Aｼﾞｺﾞｸ		A-Hell		Chapter 1 Dungeon entrance 	地獄Ａ_ Aﾁｮｳﾁｮｳ		A-Butterfly	Chapter 1 Mayor's House		町長Ａ_ Aﾈｲ		A-Nei		Speaking to Nei at the bar	ネイＡ_ Aﾈﾀ		A-Net		Chapter 1 Information Store	情報Ａ_ Aﾋﾛﾊﾞ		A-Hiroba	Chapter 1 Town Square		広場Ａ_ Aﾌﾟﾛﾛｰｸﾞ		A-Program	Intro Cutscene			N/A Aﾗｷﾞｼｽ		A-Ragisis	Chapter 1 Ragisis' House	ラギＡ_ BM01		BM01		Dungeon Level 1 Master		ダンＢ_ Bｼｰﾌ		B-Thief		Ney encounter and H		シフＢ_ Bﾏﾘｱ1		B-Maria-1	Crushing wall and lab scene	マリＢ_ Bﾏﾘｱ2		B-Maria-2	Maria H-scene			マリア_ Bﾔｸｻﾞ		B-Yakuza	Level 1 Sex toy shop		ヤクＢ_ CM01		CM01		Dungeon Level 2 Master		ダンＣ_ Cｱｸﾏ		C-Akuma		Feliss scene			N/A Cｶｶﾞﾐ		C-Kagami	Mirror room			鏡Ｃ_ Cｼﾀｲ		C-Shitai	Abandoned corpse		死体Ｃ_ Cﾈｺ		C-Cat		KD quiz				ＫＤＣ_ Cﾊｶ		C-Haka		Coffin room			墓Ｃ_ Cﾋﾟﾝﾁ		C-Pinch		Rescuing Milli from hannies	ピンチＣ Cﾐｲﾗ		C-Mummy		Mummy scenes			ミイＣ_ Cﾐﾙ1		C-Mill-1	Mil 1st scene			N/A Cﾐﾙ2		C-Mill-2	Mill 2nd scene and H		N/A D3END		D3END		Chapter 3 end scene		N/A DM01		DM01		Dungeon Level 3 Master		ダンＤ_ Dｱｰｼｰ		D-Arcy		Arcy scenes			アシＤ_ Dｶﾞｰﾀ		D-Garter	Tentacle/Fire Laser scene	ガタＤ_ Dｷｬﾝﾌﾟ		D-Camp		Chapter 3/5 Camp		キャＤ_ Dｺﾞｳﾓﾝ		D-Gomon		Torture chamber scenes		拷問Ｄ_ Dﾒﾝﾀﾏ		D-Mentama	Mr. Liver scenes		目玉Ｄ_ Dﾗﾝ		D-Ran		Chapter 5 end and Ran H		N/A GameOut		GameOut		Game Over			ゲバ_ GEND		GEND		Finale				N/A Gｼｽﾞｶ		G-Shizuka	Shizuka intro and fight		N/A Gｼｽﾞｶ2		G-Shizuka-2	Shizuka H			N/A Gｼｬｺｳ		G-Shako		Post-Shizuka scene, Chisa H	N/A Gﾗｽﾄ1		G-Last-1	Post fake ending scene		N/A Rｱｲﾃﾑ		R-Item		Chapter 2/4 Item Shop		アイＲ_ Rｷｬﾝﾌﾟ		R-Camp		Chapter 2/4 Camp		キャＲ_ Rｷｮｳｶｲ		R-Kyoukai	Chapter 2/4 Church		教会Ｒ_ Rｻｶﾊﾞ		R-Sakaba	Chapter 2/4 Bar			酒場Ｒ_ Rｼﾞｺﾞｸ		R-Hell		Chapter 2/4 Dungeon front	地獄Ｒ_ Rｼｮｳﾌ		R-Show		Elena H scene			エレＲ_ Rﾁｮｳﾁｮｳ		R-Butterfly	Chapter 2/4 Mayor's house	町長Ｒ_ Rﾈﾀ		R-Neta		Chapter 2/4 Info store		情報Ｒ_ Rﾋﾛﾊﾞ		R-Hiroba	Chapter 2/4 Town square		広場Ｒ_ Rﾗｷﾞｼｽ		R-Ragisis	Chapter 2/4 Ragisis' house	ラギＲ_ YM01		YM01		Dungeon Level 4 Master		ダンＹ_ Yｶﾌﾟｾﾙ		Y-Capsule	Lab/Girl's prison		カプＹ_ Yｷｬﾝﾌﾟ		Y-Camp		Chapter 6 Camp			キャＹ_ Yｾﾝｼ		Y-Soldier	Sylpheed scene			戦士Ｙ_ Yﾗﾙｶﾞ		Y-Ralga		Ralga H scenes			ラルＹ_ Zｱｲﾃﾑ		Z-Item		Chapter 6 Item Shop		アイＺ_ Zｵｳｼﾞｮ		Z-Ojo		Lia scene			王女Ｚ_ Zｷｮｳｶｲ		Z-Kyoukai	Chapter 6 Church		教会Ｚ_ Zｸｽﾘ		Z-Kusuri	Chapter 6 Drugstore		薬屋Ｚ_ Zｻｶﾊﾞ		Z-Sakaba	Chapter 6 Bar			酒場Ｚ_ Zｼﾞｺﾞｸ		Z-Hell		Chapter 6 Dungeon Entrance	地獄Ｚ_ Zｿﾄ		Z-Soto		Chatper 6 Maria HQ		外Ｚ_ Zﾁｮｳﾁｮｳ		Z-Butterfly	Chapter 6 Mayor's House		町長Ｚ_ Zﾈﾀ		Z-Neta		Chapter 6 Info Store		情報Ｚ_ Zﾋﾛﾊﾞ		Z-Hiroba	Chapter 6 Town Square		広場Ｚ_ Zﾔｸｼｮ		Z-Yakusho	Chapter 6 Ran's Office		役所Ｚ_ その他		Other		Various				N/A 幕間		Interlude	Chapter transitions		ステージ

Kai TAKI Files
File			Literal			Description Aｼｨﾙ			A-Sill			Sill Chapter 1 and 6 H-scenes Ｂマリア迷宮		B-Maria-Labyrinth	Maria's dungeon code Ｂミル迷宮		B-Mill-Labyrinth	Mill's dungeon code Ｂラン迷宮		B-Ran-Labyrinth		Ran's dungeon code Ｂ志津香迷宮		B-Shizuka-Labyrinth	Shizuka's dungeon code Ｔその他			T-Other			Tomato, Elena, Machiko and Willis H-scenes Ｔ第１章			T-Chapter 1		Chapter 1 major cutscenes Ｔ第１章／キャンプ	T-Chapter 1 / Camp	Chapter 1 camp code Ｔ第１章／町		T-Chapter 1 / Town	Chapter 1 town code Ｔ第２章			T-Chapter 2		Chapter 2 major cutscenes Ｔ第２章／キャンプ	T-Chapter 2 / Camp	Chapter 2/4 camp code Ｔ第２章／町		T-Chapter 2 / Town	Chapter 2/4 town code Ｔ第３章			T-Chapter 3		Chapter 3 major cutscenes Ｔ第３章／キャンプ	T-Chapter 3 / Camp	Chapter 3/5 camp code Ｔ第４章			T-Chapter 4		Chapter 4 major cutscenes, KD scenes Ｔ第５章			T-Chapter 5		Chapter 5 major cutscenes Ｔ第６章			T-Chapter 6		Chapter 6/7 major cutscenes, canister room Ｔ第６章／キャンプ	T-Chapter 6 / Camp	Chapter 6/7 camp code Ｔ第６章／町		T-Chapter 6 / Town	Chapter 6/7 town code 幕間			Interlude		Chapter transitions, technical code

■多田関数 (TADA Functions):

 * E_CLEAR: Brand new. Clears all E-bracket variables, like similar functions for other brackets. The E variables are generally used to track conversation flow, typically replacing multi-purpose D variables from the original Rance02.
 * 敵データ取得 (Enemy Data Acquisition): Originally from 7_R2Rデータ.jaf.
 * モンスターダメージセリフ (Monster Damage Dialogue): Originally from 5_戦闘_2味方.jaf.
 * 戦闘終了処理 (Battle End Processing): Originally from 5_戦闘_1メイン.jaf.
 * 勝利後イベント (Post-Victory Event): Originally from 5_戦闘_1メイン.jaf.