// TMW2 scripts. // Author: // Jesusalva // Description: // The Impregnable Fortress Control Files - Riddle Blackbox // Quest: General_Fortress // (MaxFloor+2, internal, internal) // Syntax: // 0235_Riddle_BlackBox( {riddle_id} ) // Returns true on success, false on failure. function script 0235_Riddle_BlackBox { setarray .@q$, "I have no questions for now"; setarray .@r$, ""; setarray .@l$, l(""); .@id = miller_rand(getarg(0), getcharid(0), getarraysize(.@q$)-1); // Question, then answer is input, and returns mesq l(.@q$); next; mes ""; input .@ans$; return riddlevalidation(.@ans$, .@r$[.@e], .@l$[.@e]); }