Where is Yuurei crashing?
Did you check Yuurei and H.Pig in 2.50.3? ( I have no idea what quest 'H.pig' is.)
--------------------------------------------------------------------------------
Beta 49 for Windows is on the server now.
New Things
Game->DMapPalette[int dmap]
You may use this to read, or set the Level Palette of any DMap in a quest. it should be especially useful in conjunction with DrawScreen() . or with effects such as day/night cycles, or snow, rain, and so forth.
DMap Property Setters
void SetDMapName(int dmap_id, int buffer[]); ZASM Instruction: SETDMAPNAME /** * Loads string 'buffer[]' to the DMap Name field for DMap with ID 'dmap_id'. * See std_constsnts.zh for appropriate buffer size. */ Example Use: !#! /************************************************************************************************************/ void SetDMapTitle(int DMap, int buffer[]); ZASM Instruction: SETDMAPTITLE /** * Loads string 'buffer[]' to the DMap Title field for DMap with ID 'dmap_id'. * See std_constsnts.zh for appropriate buffer size. */ Example Use: !#! /************************************************************************************************************/ void SetDMapIntro(int DMap, int buffer[]); ZASM Instruction: SETDMAPINTRO /** * Loads string 'buffer[]' to the DMap Intro field for DMap with ID 'dmap_id'. * See std_constsnts.zh for appropriate buffer size. */ Example Use: !#!
Effectively, Game->SetMessage() is the reverse of Game->GetMessage(), and places a ZScript string[] into a ZQuest message string (in the ZQ string table).
This may not respect SCCs, or it might; and this requires testing. You may need to encode SCCs as individual indices, using their ASCII codes.
Likewise, SetDMapName() , SetDMapTitle() , and SetDMapIntro() allow using a ZScript string[] to change the name, title, or intro of a DMap that you set in ZQuest.
Moosh had essentially requested these at one point, and although I was worried that there may be safety, and difficulty concerns with adding them, I believe I've done so in a safe and effective manner.
Note that these changes are not saved, and will revert on reloading the quest. Use OnExit, OnContinue, and Init to handle them if you need them to persist between sessions.
See the included 'Test49.qst' for a light demonstration of these new instructions. Press L/R to shift Level palette down, or up, respectively. Ex1, and Ex2, changes string ID 1, and the Title for DMap 0 respectively, and Ex3 displays String 1 without changing it. (Try pressing Ex3 first, before using Ex1.)
Edited by ZoriaRPG, 04 January 2017 - 02:15 AM.